Skip to content

publish v1.17.0.post1 (#16) #21

publish v1.17.0.post1 (#16)

publish v1.17.0.post1 (#16) #21

Workflow file for this run

name: build
on:
push:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
version_changed:
runs-on: ubuntu-latest
name: Check if the version was bumped
outputs:
version_changed: ${{ steps.changed_files.outputs.version_changed }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check VERSION file for changes
id: changed_files
run: |
diff=$(git diff HEAD~ -- VERSION)
echo "The diff is ${diff}"
if [ -n "$diff" ]; then
has_changes='true'
else
has_changes='false'
fi
echo "Found changed: ${has_changes}"
echo "version_changed=${has_changes}" >> "$GITHUB_OUTPUT"
build_and_test:
needs: version_changed
secrets: inherit
uses: ./.github/workflows/build_and_test.yaml
with:
build_type: branch
publish_packages: ${{ needs.version_changed.outputs.version_changed }}