Update Docs and Assets Github Actions (#1460)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 1m15s
CI / go-mod (push) Failing after 11m44s
CI / golangci-lint (push) Failing after 11m14s
Release a tag / release (push) Failing after 10m58s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.14) (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / tests-on-unix (1.16) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
Some checks failed
Extra / Vulnerability scanner (push) Failing after 1m15s
CI / go-mod (push) Failing after 11m44s
CI / golangci-lint (push) Failing after 11m14s
Release a tag / release (push) Failing after 10m58s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.14) (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / tests-on-unix (1.16) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
This commit is contained in:
parent
d4ee8189ab
commit
507703b444
43
.github/workflows/post-release.yml
vendored
Normal file
43
.github/workflows/post-release.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: "Publish release documentation"
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
jobs:
|
||||
update-docs-and-assets:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
|
||||
- name: Update GitHub action config
|
||||
run: make assets/github-action-config.json
|
||||
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "15"
|
||||
check-latest: true
|
||||
- name: npm install
|
||||
working-directory: .github/contributors
|
||||
run: npm install
|
||||
- name: Update Contributors list
|
||||
run: make update_contributors_list # may take 15 min
|
||||
|
||||
- name: Update netlify state hash
|
||||
run: make update_netlify_state
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
base: master
|
||||
token: ${{ secrets.GOLANGCI_LINT_TOKEN }}
|
||||
branch-suffix: timestamp
|
||||
title: "Update documentation and assets"
|
||||
team-reviewers: golangci/team
|
||||
delete-branch: true
|
36
.github/workflows/tag.yml
vendored
36
.github/workflows/tag.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
|
||||
|
||||
docker-release:
|
||||
needs: [ release ]
|
||||
needs: release
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
@ -48,23 +48,23 @@ jobs:
|
||||
- name: Prepare
|
||||
id: prepare
|
||||
run: |
|
||||
TAG=${GITHUB_REF#refs/tags/}
|
||||
MAJOR=${TAG%.*}
|
||||
SHORT_COMMIT=${GITHUB_SHA::8}
|
||||
DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
|
||||
echo ::set-output name=tag_name::${TAG}
|
||||
echo ::set-output name=major_tag::${MAJOR}
|
||||
echo ::set-output name=short_commit::${SHORT_COMMIT}
|
||||
echo ::set-output name=date::${DATE}
|
||||
if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
|
||||
echo ::set-output name=full_tag_name::${TAG}-alpine
|
||||
echo ::set-output name=full_major_tag::${MAJOR}-alpine
|
||||
echo ::set-output name=latest_tag::latest-alpine
|
||||
else
|
||||
echo ::set-output name=full_tag_name::${TAG}
|
||||
echo ::set-output name=full_major_tag::${MAJOR}
|
||||
echo ::set-output name=latest_tag::latest
|
||||
fi
|
||||
TAG=${GITHUB_REF#refs/tags/}
|
||||
MAJOR=${TAG%.*}
|
||||
SHORT_COMMIT=${GITHUB_SHA::8}
|
||||
DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
|
||||
echo ::set-output name=tag_name::${TAG}
|
||||
echo ::set-output name=major_tag::${MAJOR}
|
||||
echo ::set-output name=short_commit::${SHORT_COMMIT}
|
||||
echo ::set-output name=date::${DATE}
|
||||
if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
|
||||
echo ::set-output name=full_tag_name::${TAG}-alpine
|
||||
echo ::set-output name=full_major_tag::${MAJOR}-alpine
|
||||
echo ::set-output name=latest_tag::latest-alpine
|
||||
else
|
||||
echo ::set-output name=full_tag_name::${TAG}
|
||||
echo ::set-output name=full_major_tag::${MAJOR}
|
||||
echo ::set-output name=latest_tag::latest
|
||||
fi
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
Loading…
x
Reference in New Issue
Block a user