Skip to content

bump up version to v1.7.1 #61

bump up version to v1.7.1

bump up version to v1.7.1 #61

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- run: gem install ronn
- run: ronn ./man/actionlint.1.ronn
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Post-release download check
run: bash ./scripts/download-actionlint.bash "${GITHUB_REF#refs/tags/v}"
- name: Clone nested repository to make version bump commit
uses: actions/checkout@v4
with:
path: ./tmp-actionlint-for-update-ver
ref: main
fetch-depth: 0
- 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
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"
git log -n 1
git push
winget:
runs-on: ubuntu-latest
needs: release
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: rhysd.actionlint
installers-regex: '_windows_\w+\.zip$'
token: ${{ secrets.WINGET_TOKEN }}
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get tag name
id: tag
run: |
echo "name=${GITHUB_REF#refs/tags/v}" >> "$GITHUB_OUTPUT"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: rhysd
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
build-args: |
GOLANG_VER=1.22
ACTIONLINT_VER=${{ steps.tag.outputs.name }}
push: true
tags: |
rhysd/actionlint:${{ steps.tag.outputs.name }}
rhysd/actionlint:latest