Skip to content

Commit df6ab7d

Browse files
authored
bump actions versions, cache pip (#32)
* bump versions, cache pip * missed a spot * more!
1 parent e14e85e commit df6ab7d

File tree

9 files changed

+43
-33
lines changed

9 files changed

+43
-33
lines changed

.github/workflows/_shared-docs-build-pr.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
steps:
145145
- name: Variable setup
146146
id: vars
147-
uses: actions/github-script@v5
147+
uses: actions/github-script@v6
148148
with:
149149
script: |
150150
const inputs = ${{ toJSON(inputs) }}
@@ -189,15 +189,19 @@ jobs:
189189
}
190190
191191
- name: Set up Python
192-
uses: actions/setup-python@v2
192+
uses: actions/setup-python@v3
193193
with:
194194
python-version: ${{ inputs.python }}
195+
cache: pip
196+
cache-dependency-path: |
197+
**/requirements*.txt
198+
**/build.sh
195199
196200
- name: Install Ansible
197201
run: pip install https://github.com/ansible/ansible/archive/${{ inputs.ansible-ref }}.tar.gz --disable-pip-version-check
198202

199203
- name: Checkout BASE
200-
uses: actions/checkout@v2
204+
uses: actions/checkout@v3
201205
with:
202206
ref: ${{ github.event.pull_request.base.sha }}
203207
path: ${{ steps.vars.outputs.checkout-path }}
@@ -223,7 +227,7 @@ jobs:
223227
artifact-upload: 'false'
224228

225229
- name: Checkout HEAD
226-
uses: actions/checkout@v2
230+
uses: actions/checkout@v3
227231
with:
228232
# It would be better to use
229233
#

.github/workflows/_shared-docs-build-publish-surge.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ jobs:
2727
permissions:
2828
contents: read
2929
steps:
30-
- name: DEBUG
31-
run: |
32-
echo <<EOF
33-
${{ toJSON(inputs) }}
34-
EOF
35-
3630
- name: Check required
3731
if: inputs.action == 'publish' && inputs.artifact-name == ''
3832
run: |
@@ -42,13 +36,13 @@ jobs:
4236
- name: Retrieve rendered docs
4337
if: inputs.action == 'publish'
4438
id: download
45-
uses: actions/download-artifact@v2
39+
uses: actions/download-artifact@v3
4640
with:
4741
name: ${{ inputs.artifact-name }}
4842
path: html
4943

5044
- name: Install Node
51-
uses: actions/setup-node@v2
45+
uses: actions/setup-node@v3
5246
with:
5347
node-version: 14
5448

.github/workflows/_shared-docs-build-push.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
steps:
6868
- name: Variable setup
6969
id: vars
70-
uses: actions/github-script@v5
70+
uses: actions/github-script@v6
7171
with:
7272
script: |
7373
const inputs = ${{ toJSON(inputs) }}
@@ -102,15 +102,19 @@ jobs:
102102
core.setOutput('skip-init', skipInit)
103103
104104
- name: Set up Python
105-
uses: actions/setup-python@v2
105+
uses: actions/setup-python@v3
106106
with:
107107
python-version: ${{ inputs.python }}
108+
cache: pip
109+
cache-dependency-path: |
110+
**/requirements*.txt
111+
**/build.sh
108112
109113
- name: Install Ansible
110114
run: pip install https://github.com/ansible/ansible/archive/${{ inputs.ansible-ref }}.tar.gz --disable-pip-version-check
111115

112116
- name: Checkout
113-
uses: actions/checkout@v2
117+
uses: actions/checkout@v3
114118
with:
115119
path: ${{ steps.vars.outputs.checkout-path }}
116120

.github/workflows/generate-wiki-docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,23 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- if: fromJSON(env.SHOULD_RUN)
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
2727

2828
- name: Checkout wiki
2929
if: fromJSON(env.SHOULD_RUN)
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
3131
with:
3232
repository: ${{ github.repository }}.wiki
3333
path: ${{ env.WIKI }}
3434

35-
- uses: actions/setup-python@v2
35+
- uses: actions/setup-python@v3
3636
if: fromJSON(env.SHOULD_RUN)
3737
with:
3838
python-version: '3.9'
39+
cache: pip
40+
cache-dependency-path: |
41+
**/requirements*.txt
42+
**/build.sh
3943
4044
- name: Install Ansible
4145
if: fromJSON(env.SHOULD_RUN)

.github/workflows/test-action-build-html.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2323

2424
- name: Simple 1 invoke - no copy, no artifact
2525
id: simple1
@@ -30,7 +30,7 @@ jobs:
3030
artifact-upload: false
3131

3232
- name: Simple 1 - Download artifacts
33-
uses: actions/download-artifact@v2
33+
uses: actions/download-artifact@v3
3434
id: simple1-artifact
3535
with:
3636
path: .artifacts/simple1
@@ -57,7 +57,7 @@ jobs:
5757
artifact-upload: false
5858

5959
- name: Simple 2 - Download artifacts
60-
uses: actions/download-artifact@v2
60+
uses: actions/download-artifact@v3
6161
id: simple2-artifact
6262
with:
6363
path: .artifacts/simple2
@@ -86,7 +86,7 @@ jobs:
8686
artifact-name: tests-simple3
8787

8888
- name: Simple 3 - Download artifacts
89-
uses: actions/download-artifact@v2
89+
uses: actions/download-artifact@v3
9090
id: simple3-artifact
9191
with:
9292
name: ${{ steps.simple3.outputs.artifact-name }}
@@ -126,7 +126,7 @@ jobs:
126126
artifact-name: tests-simple4
127127

128128
- name: Simple 4 - Download artifacts
129-
uses: actions/download-artifact@v2
129+
uses: actions/download-artifact@v3
130130
id: simple4-artifact
131131
with:
132132
name: ${{ steps.simple4.outputs.artifact-name }}
@@ -168,7 +168,7 @@ jobs:
168168
artifact-name: tests-simple5
169169

170170
- name: Simple 5 - Download artifacts
171-
uses: actions/download-artifact@v2
171+
uses: actions/download-artifact@v3
172172
id: simple5-artifact
173173
with:
174174
name: ${{ steps.simple5.outputs.artifact-name }}

.github/workflows/test-action-build-init.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,16 @@ jobs:
4343

4444
steps:
4545
- name: Checkout
46-
uses: actions/checkout@v2
46+
uses: actions/checkout@v3
4747

4848
- name: Install Python
49-
uses: actions/setup-python@v2
49+
uses: actions/setup-python@v3
5050
with:
5151
python-version: 3.9
52+
cache: pip
53+
cache-dependency-path: |
54+
**/requirements*.txt
55+
**/build.sh
5256
5357
# if we pass an empty string to dest-dir, it will override the default.
5458
# we can't copy the default into the matrix because it uses a templating

actions/ansible-docs-build-comment/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ runs:
4545
steps:
4646
- name: Look for an existing comment
4747
id: fc
48-
uses: peter-evans/find-comment@v1
48+
uses: peter-evans/find-comment@v2
4949
with:
5050
issue-number: ${{ inputs.pr-number }}
5151
body-includes: ${{ inputs.body-includes }}
5252
comment-author: 'github-actions[bot]'
5353

5454
- name: Determine actions
5555
id: vars
56-
uses: actions/github-script@v5
56+
uses: actions/github-script@v6
5757
with:
5858
script: |
5959
const inputs = ${{ toJSON(inputs )}}
@@ -78,7 +78,7 @@ runs:
7878
if: >-
7979
steps.vars.outputs.action == 'remove'
8080
&& steps.fc.outputs.comment-id
81-
uses: actions/github-script@v5
81+
uses: actions/github-script@v6
8282
with:
8383
script: |
8484
github.rest.issues.deleteComment({
@@ -90,7 +90,7 @@ runs:
9090
- name: Post or update comment
9191
id: comment
9292
if: steps.vars.outputs.action == 'update'
93-
uses: peter-evans/create-or-update-comment@v1
93+
uses: peter-evans/create-or-update-comment@v2
9494
with:
9595
comment-id: ${{ steps.fc.outputs.comment-id }}
9696
issue-number: ${{ inputs.pr-number }}

actions/ansible-docs-build-diff/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ runs:
8888
echo "::group::Deleting files from ${{ inputs.build-html-b }}"
8989
find "${{ inputs.build-html-b }}" \( -name '*.js' -or -name '*.inv' \) -delete -print
9090
echo "::endgroup::"
91-
91+
9292
- name: Create diff
9393
id: diff
94-
uses: actions/github-script@v5
94+
uses: actions/github-script@v6
9595
with:
9696
script: |
9797
// attribution: https://stackoverflow.com/a/3561711/3905079

actions/ansible-docs-build-html/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ runs:
6767
6868
- name: Upload artifact
6969
if: fromJSON(inputs.artifact-upload)
70-
uses: actions/upload-artifact@v2
70+
uses: actions/upload-artifact@v3
7171
with:
7272
path: ${{ steps.build.outputs.build-html }}
7373
name: ${{ inputs.artifact-name }}

0 commit comments

Comments
 (0)