publish v1.17.0.post1 (#16) #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |