on-push.yml 382 B

1234567891011121314151617181920
  1. name: OnPush
  2. on:
  3. push:
  4. branches: ["**"]
  5. pull_request:
  6. jobs:
  7. ci:
  8. uses: ./.github/workflows/ci.yml
  9. build:
  10. if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/test/'))
  11. needs: [ci]
  12. uses: ./.github/workflows/build.yml
  13. permissions:
  14. contents: read
  15. packages: write
  16. secrets: inherit