Skip to content

Commit

Permalink
[#436] Change implementation of github wiki publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mosharaf13 committed Jul 7, 2023
1 parent ab44f03 commit e608fae
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions .template/addons/github/.github/workflows/publish_wiki.yml.tt
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit e608fae

Please sign in to comment.