Bumps the dependencies group with 2 updates: [megalinter/megalinter](https://github.com/megalinter/megalinter) and [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action). Updates `megalinter/megalinter` from 8.3.0 to 8.4.2 - [Release notes](https://github.com/megalinter/megalinter/releases) - [Changelog](https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md) - [Commits](https://github.com/megalinter/megalinter/compare/v8.3.0...v8.4.2) Updates `goreleaser/goreleaser-action` from 5 to 6 - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/v5...v6) --- updated-dependencies: - dependency-name: megalinter/megalinter dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
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@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: GoReleaser
|
|
uses: goreleaser/goreleaser-action@v6
|
|
with:
|
|
version: latest
|
|
args: release --clean
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Winget
|
|
uses: vedantmgoyal2009/winget-releaser@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,
|
|
});
|