support GH_ACTIONS_PIN_WORKFLOWS_DIR for non-standard workflow locations #12
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: release | ||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| attestations: write | ||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: OIDC Setup for goproxy | ||
| uses: github/setup-goproxy@v1.1.0 | ||
| - uses: actions/checkout@v6.0.2 | ||
| - uses: cli/gh-extension-precompile@v2.1.0 | ||
| with: | ||
| generate_attestations: true | ||
| go_version_file: go.mod | ||
| go_build_options: ./cmd/gh-actions-pin | ||
| sync-early-access-release: | ||
| needs: release | ||
| uses: ./.github/workflows/sync-early-access-release.yml | ||
| with: | ||
| tag: ${{ github.ref_name }} | ||
| secrets: | ||
| ACTIONS_LOCKED_DEPENDENCIES_RELEASE_PAT: ${{ secrets.ACTIONS_LOCKED_DEPENDENCIES_RELEASE_PAT }} | ||