Fix all thruthy errors detected by yamllint: yamllint -f parsable -c .yamllint $( find -regex '.*\.y[a]*ml' ) | \ grep '(truthy)' This only accepts true/false for boolean properties. Seems like python takes all sort of formats: https://github.com/yaml/pyyaml/blob/master/lib/yaml/constructor.py#L224-L235 But the current specs only mention "true" or "false" https://yaml.org/spec/1.2.2/#10212-boolean Which is the standard yamllint config. Excluding codeconv and workflow files, as some are using yes/no instead in the respective documentation. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
name: Create a Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
- '!v*rc*'
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Get the version
|
|
id: get_version
|
|
run: |
|
|
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
|
echo "TRIMMED_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
|
|
|
- name: REUSE Compliance Check
|
|
uses: fsfe/reuse-action@v1
|
|
with:
|
|
args: spdx -o zephyr-${{ steps.get_version.outputs.VERSION }}.spdx
|
|
|
|
- name: upload-results
|
|
uses: actions/upload-artifact@v3
|
|
continue-on-error: true
|
|
with:
|
|
name: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx
|
|
path: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx
|
|
|
|
- name: Create empty release notes body
|
|
run: |
|
|
echo "TODO: add release overview and notes link" > release-notes.txt
|
|
|
|
- name: Create Release
|
|
id: create_release
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: ${{ github.ref }}
|
|
release_name: Zephyr ${{ steps.get_version.outputs.TRIMMED_VERSION }}
|
|
body_path: release-notes.txt
|
|
draft: true
|
|
prerelease: true
|
|
|
|
- name: Upload Release Assets
|
|
id: upload-release-asset
|
|
uses: actions/upload-release-asset@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
asset_path: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx
|
|
asset_name: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx
|
|
asset_content_type: text/plain
|