Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ on:
tags:
- "v*.*.*"

permissions:
contents: write

jobs:
binaries:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
attestations: write
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
Expand All @@ -21,14 +22,19 @@ jobs:
with:
go-version: '1.25'
check-latest: true
- name: Get version
run: echo VERSION="${GITHUB_REF#refs/tags/v}" >> "$GITHUB_ENV"
- uses: goreleaser/goreleaser-action@v6
with:
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/attest-build-provenance@v3
with:
subject-checksums: ${{ format('./dist/actionlint_{0}_checksums.txt', env.VERSION) }}
- name: Post-release download check
run: bash ./scripts/download-actionlint.bash "${GITHUB_REF#refs/tags/v}"
run: bash ./scripts/download-actionlint.bash "$VERSION"
- name: Clone nested repository to make version bump commit
uses: actions/checkout@v6
with:
Expand All @@ -38,9 +44,8 @@ jobs:
- name: Update version in download script
run: |
set -x
ver="${GITHUB_REF#refs/tags/v}"
cd ./tmp-actionlint-for-update-ver
sed -i -E "s/version=\"[0-9]+\\.[0-9]+\\.[0-9]+\"/version=\"${ver}\"/" ./scripts/download-actionlint.bash
sed -i -E "s/version=\"[0-9]+\\.[0-9]+\\.[0-9]+\"/version=\"${VERSION}\"/" ./scripts/download-actionlint.bash
git diff
git add ./scripts/download-actionlint.bash
git -c user.email='41898282+github-actions[bot]@users.noreply.github.com' -c user.name='github-actions[bot]' commit -m "update version to $ver in download-actionlint.bash"
Expand Down