fix: skip version file updates on main for pre-release tags #3160
Workflow file for this run
This file contains hidden or 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: Run Test | |
| on: | |
| pull_request: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| branches: | |
| - "main" | |
| schedule: | |
| - cron: '0 4 * * 3' # Every Wednesday at 4:00 AM | |
| # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token | |
| permissions: | |
| contents: read | |
| jobs: | |
| event_file: | |
| name: "Store event file" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Upload | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: Event File | |
| path: ${{ github.event_path }} | |
| unit-tests: | |
| if: | | |
| !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' | |
| uses: ./.github/workflows/unit-tests.yaml | |
| name: Unit tests | |
| security-tests: | |
| name: Security tests | |
| needs: [unit-tests] | |
| if: needs.unit-tests.result == 'success' | |
| uses: ./.github/workflows/security-tests.yaml | |
| secrets: inherit | |
| integration-tests: | |
| name: Integration tests | |
| needs: [unit-tests] | |
| if: needs.unit-tests.result == 'success' | |
| uses: ./.github/workflows/integration-tests.yaml | |
| with: | |
| cnspecImageTag: "" | |
| secrets: inherit |