check.yml 672 B

123456789101112131415161718192021222324252627
  1. name: check
  2. on: [push, pull_request, merge_group, workflow_dispatch]
  3. jobs:
  4. check:
  5. runs-on: ubuntu-latest
  6. name: Check
  7. steps:
  8. - name: Checkout
  9. uses: actions/checkout@v4
  10. with:
  11. fetch-depth: 0
  12. - name: Check version
  13. id: version-check
  14. run: |
  15. chmod +x ./scripts/is-newer-version.bash
  16. chmod +x ./scripts/get-version.bash
  17. VERSION=$(./scripts/is-newer-version.bash)
  18. echo "version=${VERSION}" >> $GITHUB_OUTPUT
  19. if [ "$VERSION" != "0" ]; then
  20. echo "New version detected: $VERSION"
  21. else
  22. echo "No new version to release"
  23. fi