-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Docs and Assets Github Actions (#1460)
- Loading branch information
1 parent
d4ee818
commit 507703b
Showing
2 changed files
with
61 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters