Skip to content

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #18

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #18

Workflow file for this run

name: Validate
on:
pull_request:
paths-ignore:
- "README.md"
- "doc/**"
- "map_samples/**"
jobs:
validate_release_version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.write_output.outputs.version }}
tag_name: ${{ steps.write_output.outputs.tag_name }}
package_desc: ${{ steps.write_output.outputs.package_desc }}
steps:
- uses: actions/checkout@v3
- name: Determine Version
id: get_version
run: |
package_version=$(python ./src/version.py --version)
package_desc=$(python ./src/version.py --description)
echo "package_version=$package_version" >> $GITHUB_ENV
echo "tag_name=v$package_version" >> $GITHUB_ENV
echo "package_desc<<EOF" >> $GITHUB_ENV
echo "$package_desc" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- uses: mukunku/[email protected]
id: check_tag
with:
tag: ${{ env.tag_name }}
- name: Write Output
id: write_output
run: |
if [ ${{ steps.check_tag.outputs.exists }} = 'true' ]; then
echo "Tag for this release already exists! Bump version in src/version.py"
exit 1
else
echo "tag_name=${{ env.tag_name }}" >> $GITHUB_OUTPUT
echo "version=${{ env.package_version }}" >> $GITHUB_OUTPUT
echo "package_desc<<EOF" >> $GITHUB_OUTPUT
echo "${{ env.package_desc }}" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
fi
build:
runs-on: ubuntu-latest
needs: validate_release_version
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install -r src/requirements.txt
- name: Install build dependencies
run: |
pip install -r build/requirements-dev.txt
- name: Package build
run: |
cd build/linux
sh build.sh