@@ -12,37 +12,28 @@ permissions:
12
12
13
13
jobs :
14
14
docs :
15
- # update docs after merge back to develop
16
15
name : Auto update terraform docs
17
16
runs-on : ubuntu-latest
18
17
steps :
19
- - uses : philips-software/app-token-action@9f5d57062c9f2beaffafaa9a34f66f824ead63a9 # v2.0.0
20
- id : app
21
- with :
22
- app_id : ${{ vars.FOREST_PR_BOT_APP_ID }}
23
- app_base64_private_key : ${{ secrets.FOREST_PR_BOT_APP_KEY_BASE64 }}
24
- auth_type : installation
25
- org : philips-labs
26
-
27
18
- name : Checkout with GITHUB Action token
28
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
19
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
29
20
with :
30
- token : ${{ steps.app.outputs.token }}
21
+ token : ${{ secrets.GITHUB_TOKEN }}
31
22
32
23
# use an app to ensure CI is triggered
33
24
- name : Generate TF docs
34
25
if : github.repository_owner == 'philips-labs'
35
- uses : terraform-docs/gh-actions@e47bfa196e79fa50987ef391be236d9d97b0c786 # ratchet:terraform-docs/gh-actions@ v1.2.0
26
+ uses : terraform-docs/gh-actions@e47bfa196e79fa50987ef391be236d9d97b0c786 # v1.2.0
36
27
with :
37
28
find-dir : .
38
29
git-commit-message : " docs: auto update terraform docs"
39
30
git-push : ${{ github.ref != 'refs/heads/main' || github.repository_owner != 'philips-labs' }}
40
- git-push-user-name : forest -pr|bot
41
- git-push-user-email : " forest -pr[bot]@users.noreply.github.com"
31
+ git-push-user-name : philips-labs -pr|bot
32
+ git-push-user-email : " philips-labs -pr[bot]@users.noreply.github.com"
42
33
43
34
- name : Generate TF docs (forks)
44
35
if : github.repository_owner != 'philips-labs'
45
- uses : terraform-docs/gh-actions@e47bfa196e79fa50987ef391be236d9d97b0c786 # ratchet:terraform-docs/gh-actions@ v1.2.0
36
+ uses : terraform-docs/gh-actions@e47bfa196e79fa50987ef391be236d9d97b0c786 # v1.2.0
46
37
with :
47
38
find-dir : .
48
39
git-commit-message : " docs: auto update terraform docs"
51
42
# change docs via PR in case of locked main branch
52
43
- name : Create Pull Request (main branch only)
53
44
if : github.ref == 'refs/heads/main' && github.repository_owner == 'philips-labs'
54
- uses : peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # ratchet:peter-evans/create-pull-request@ v6.1.0
45
+ uses : peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
55
46
with :
56
47
token : ${{ secrets.GITHUB_TOKEN }}
57
48
commit-message : " docs: auto update terraform docs"
@@ -65,16 +56,16 @@ jobs:
65
56
needs : [docs]
66
57
runs-on : ubuntu-latest
67
58
steps :
68
- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
59
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
69
60
- name : Configure Git Credentials
70
61
run : |
71
62
git config user.name github-actions[bot]
72
63
git config --global user.email "github-actions[bot]@users.noreply.github.com"
73
- - uses : actions/setup-python@v5
64
+ - uses : actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
74
65
with :
75
66
python-version : 3.x
76
67
- run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
77
- - uses : actions/cache@v4
68
+ - uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
78
69
with :
79
70
key : mkdocs-material-${{ env.cache_id }}
80
71
path : .cache
0 commit comments