/
githubmirror
/
act
Обзор
Документация
Войти
/
githubmirror
/
act
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/release.yml
58 строк
2 KB
dagecko
fix: pin 11 unpinned action(s) (#6042)
27 мар 2026, 00:01
Не верифицирован
27 мар 2026, 00:01
828d488
Код
Авторство
О чём код?
name: release on: push: tags: - v* permissions: contents: write actions: write jobs: release: name: release runs-on: ubuntu-latest environment: release steps: - uses: actions/checkout@v6 with: fetch-depth: 0 - uses: actions/setup-go@v6 with: go-version-file: go.mod - name: GoReleaser uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7 with: version: '~> v2' args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Winget uses: vedantmgoyal2009/winget-releaser@4ffc7888bffd451b357355dc214d43bb9f23917e # v2 with: identifier: nektos.act installers-regex: '_Windows_\w+\.zip$' token: ${{ secrets.WINGET_TOKEN }} - name: Chocolatey uses: ./.github/actions/choco with: version: ${{ github.ref }} apiKey: ${{ secrets.CHOCO_APIKEY }} push: true - name: GitHub CLI extension uses: actions/github-script@v7 with: github-token: ${{ secrets.GH_ACT_TOKEN }} script: | const mainRef = (await github.rest.git.getRef({ owner: 'nektos', repo: 'gh-act', ref: 'heads/main', })).data; console.log(mainRef); github.rest.git.createRef({ owner: 'nektos', repo: 'gh-act', ref: context.ref, sha: mainRef.object.sha, });