forked from rhysd/actionlint
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1.34 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
- run: gem install ronn
- run: ronn ./man/actionlint.1.ronn
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: --rm-dist
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@v2
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=\"[^\"]+\"/version=\"\${1:-${ver}}\"/" ./scripts/download-actionlint.bash
git diff
git add ./scripts/download-actionlint.bash
git -c user.email='github@users.noreply.github.com' -c user.name='github-actions' commit -m "update version to $ver in download-actionlint.bash"
git log -n 1
git push