Skip to content

Commit 507703b

Browse files
Update Docs and Assets Github Actions (#1460)
1 parent d4ee818 commit 507703b

File tree

2 files changed

+61
-18
lines changed

2 files changed

+61
-18
lines changed

.github/workflows/post-release.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Publish release documentation"
2+
on:
3+
release:
4+
types:
5+
- published
6+
7+
jobs:
8+
update-docs-and-assets:
9+
runs-on: ubuntu-latest
10+
env:
11+
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install Go
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.16
18+
19+
- name: Update GitHub action config
20+
run: make assets/github-action-config.json
21+
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: "15"
25+
check-latest: true
26+
- name: npm install
27+
working-directory: .github/contributors
28+
run: npm install
29+
- name: Update Contributors list
30+
run: make update_contributors_list # may take 15 min
31+
32+
- name: Update netlify state hash
33+
run: make update_netlify_state
34+
35+
- name: Create Pull Request
36+
uses: peter-evans/create-pull-request@v3
37+
with:
38+
base: master
39+
token: ${{ secrets.GOLANGCI_LINT_TOKEN }}
40+
branch-suffix: timestamp
41+
title: "Update documentation and assets"
42+
team-reviewers: golangci/team
43+
delete-branch: true

.github/workflows/tag.yml

+18-18
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
2828

2929
docker-release:
30-
needs: [ release ]
30+
needs: release
3131
runs-on: ubuntu-latest
3232
strategy:
3333
matrix:
@@ -48,23 +48,23 @@ jobs:
4848
- name: Prepare
4949
id: prepare
5050
run: |
51-
TAG=${GITHUB_REF#refs/tags/}
52-
MAJOR=${TAG%.*}
53-
SHORT_COMMIT=${GITHUB_SHA::8}
54-
DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
55-
echo ::set-output name=tag_name::${TAG}
56-
echo ::set-output name=major_tag::${MAJOR}
57-
echo ::set-output name=short_commit::${SHORT_COMMIT}
58-
echo ::set-output name=date::${DATE}
59-
if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
60-
echo ::set-output name=full_tag_name::${TAG}-alpine
61-
echo ::set-output name=full_major_tag::${MAJOR}-alpine
62-
echo ::set-output name=latest_tag::latest-alpine
63-
else
64-
echo ::set-output name=full_tag_name::${TAG}
65-
echo ::set-output name=full_major_tag::${MAJOR}
66-
echo ::set-output name=latest_tag::latest
67-
fi
51+
TAG=${GITHUB_REF#refs/tags/}
52+
MAJOR=${TAG%.*}
53+
SHORT_COMMIT=${GITHUB_SHA::8}
54+
DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
55+
echo ::set-output name=tag_name::${TAG}
56+
echo ::set-output name=major_tag::${MAJOR}
57+
echo ::set-output name=short_commit::${SHORT_COMMIT}
58+
echo ::set-output name=date::${DATE}
59+
if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
60+
echo ::set-output name=full_tag_name::${TAG}-alpine
61+
echo ::set-output name=full_major_tag::${MAJOR}-alpine
62+
echo ::set-output name=latest_tag::latest-alpine
63+
else
64+
echo ::set-output name=full_tag_name::${TAG}
65+
echo ::set-output name=full_major_tag::${MAJOR}
66+
echo ::set-output name=latest_tag::latest
67+
fi
6868
6969
- name: Set up QEMU
7070
uses: docker/setup-qemu-action@v1

0 commit comments

Comments
 (0)