File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: create-root-readme
2
2
3
3
on :
4
4
workflow_run :
5
- workflows : ["generate-terraform-docs"] # Runs after completion of generate-terraform-docs workflow
5
+ workflows : [ "generate-terraform-docs" ] # Runs after completion of generate-terraform-docs workflow
6
6
types :
7
7
- completed
8
8
16
16
- name : Check out the repository
17
17
uses : actions/checkout@v4
18
18
19
+ - name : Token generator
20
+ uses : githubofkrishnadhas/github-access-using-githubapp@v2
21
+ id : token-generation
22
+ with :
23
+ github_app_id : ${{ secrets.TOKEN_GENERATOR_APPID }}
24
+ github_app_private_key : ${{ secrets.TOKEN_GENERATOR_PRIVATE_KEY }}
25
+
19
26
- name : Ensure tree command is installed
20
27
run : sudo apt update && sudo apt-get install -y tree
21
28
24
31
bash create-readme.sh
25
32
26
33
- name : Commit and Push Changes
34
+ env :
35
+ GITHUB_TOKEN : ${{ steps.token-generation.outputs.token }}
27
36
run : |
28
37
git config user.name 'github-actions'
29
38
git config user.email '[email protected] '
30
39
git add .
31
40
git commit -m "Update documentation"
41
+ git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/devwithkrishna/azure-terraform-modules.git
32
42
git push
You can’t perform that action at this time.
0 commit comments