File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,26 +16,31 @@ jobs:
1616 runs-on : ubuntu-latest
1717
1818 steps :
19+ - name : Get Gitflow App token
20+ uses : actions/create-github-app-token@v1
21+ id : app-token
22+ with :
23+ app-id : ${{ secrets.GITFLOW_APP_ID }}
24+ private-key : ${{ secrets.GITFLOW_APP_KEY }}
25+
1926 - name : Checkout Repository
2027 uses : actions/checkout@v4
28+ with :
29+ token : ${{ steps.app-token.outputs.token }}
2130
2231 - name : Merge Source Branch into Develop
2332 run : |
2433 git config --global user.name "bot"
2534 git config --global user.email "bot@colorifix.com"
26- git fetch
27- git checkout develop
35+ git fetch origin
36+ git switch develop
2837 git merge --no-ff origin/${{ github.event.pull_request.head.ref }} -m "Merge ${{ github.event.pull_request.head.ref }} into develop"
2938 git push origin develop
3039
31- - name : Build docs
32- if : startsWith(github.event.pull_request.head.ref, 'docs/')
33- run : foo
34-
3540 publish-docs :
36- name : Publish Documentation
41+ name : Publish documentation
3742 runs-on : ubuntu-latest
38- if : startsWith(github.event.pull_request.head.ref, 'docs/')
43+ if : startsWith(github.event.pull_request.head.ref, 'docs/') || startsWith(github.event.pull_request.head.ref, 'release/')
3944 permissions :
4045 id-token : write
4146 pages : write
6671
6772 - name : Deploy pages
6873 uses : actions/deploy-pages@v4
74+
75+ permissions :
76+ contents : write
You can’t perform that action at this time.
0 commit comments