-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#436] Change implementation of github wiki publish workflow
- Loading branch information
1 parent
ab44f03
commit e608fae
Showing
1 changed file
with
27 additions
and
10 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 |
---|---|---|
|
@@ -2,18 +2,35 @@ name: Publish Wiki | |
|
||
on: | ||
push: | ||
paths: | ||
- .github/wiki/** | ||
branches: | ||
- develop | ||
paths: | ||
- .github/wiki/** | ||
|
||
env: | ||
USER_EMAIL: ${{ secrets.GH_EMAIL }} | ||
USER_NAME: github-wiki-workflow | ||
USER_EMAIL: [email protected] | ||
|
||
jobs: | ||
publish: | ||
name: Publish Wiki | ||
uses: nimblehq/github-actions-workflows/.github/workflows/[email protected] | ||
with: | ||
USER_NAME: github-wiki-workflow | ||
USER_EMAIL: $USER_EMAIL | ||
secrets: | ||
USER_TOKEN: ${{ secrets.GH_TOKEN }} | ||
name: Publish Github Wiki | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 1 | ||
|
||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Publish Github Wiki | ||
uses: nimblehq/[email protected] | ||
with: | ||
user_name: ${{ env.USER_NAME }} | ||
user_email: ${{ env.USER_EMAIL }} | ||
user_access_token: ${{ secrets.USER_ACCESS_TOKEN }} |