Skip to content

Commit fe1b004

Browse files
committed
Update actions
1 parent 6adcfb1 commit fe1b004

20 files changed

Lines changed: 172 additions & 125 deletions

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: "ubuntu-latest"
1313

1414
steps:
15-
- uses: "actions/checkout@v4"
15+
- uses: "actions/checkout@v6"
1616
with:
1717
path: "plugin_template"
1818
# We need the full history for bootstrapping
1919
fetch-depth: 0
20-
- uses: "actions/setup-python@v5"
20+
- uses: "actions/setup-python@v6"
2121
with:
2222
python-version: "3.11"
2323
- name: "Bootstrap catdog plugin"
@@ -27,7 +27,7 @@ jobs:
2727
2828
# Below this line we include the steps of the ci workflow of the generated plugin
2929

30-
- uses: "actions/checkout@v4"
30+
- uses: "actions/checkout@v6"
3131
with:
3232
fetch-depth: 1
3333
repository: "pulp/pulp-openapi-generator"
@@ -47,15 +47,15 @@ jobs:
4747
pulpcore-manager openapi --file "api.json"
4848
pulpcore-manager openapi --bindings --component "catdog" --file "catdog-api.json"
4949
- name: "Upload Package whl"
50-
uses: "actions/upload-artifact@v4"
50+
uses: "actions/upload-artifact@v5"
5151
with:
5252
name: "plugin_package"
5353
path: "pulp_catdog/dist/"
5454
if-no-files-found: "error"
5555
retention-days: 5
5656
overwrite: true
5757
- name: "Upload API specs"
58-
uses: "actions/upload-artifact@v4"
58+
uses: "actions/upload-artifact@v5"
5959
with:
6060
name: "api_spec"
6161
path: |
@@ -74,7 +74,7 @@ jobs:
7474
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
7575
GITHUB_CONTEXT: "${{ github.event.pull_request.commits_url }}"
7676
- name: "Upload python client packages"
77-
uses: "actions/upload-artifact@v4"
77+
uses: "actions/upload-artifact@v5"
7878
with:
7979
name: "python-client.tar"
8080
path: |
@@ -83,7 +83,7 @@ jobs:
8383
retention-days: 5
8484
overwrite: true
8585
- name: "Upload python client docs"
86-
uses: "actions/upload-artifact@v4"
86+
uses: "actions/upload-artifact@v5"
8787
with:
8888
name: "python-client-docs.tar"
8989
path: |
@@ -101,7 +101,7 @@ jobs:
101101
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
102102
GITHUB_CONTEXT: "${{ github.event.pull_request.commits_url }}"
103103
- name: "Upload Ruby client"
104-
uses: "actions/upload-artifact@v4"
104+
uses: "actions/upload-artifact@v5"
105105
with:
106106
name: "ruby-client.tar"
107107
path: |

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
check-commits:
1515
runs-on: "ubuntu-latest"
1616
steps:
17-
- uses: "actions/checkout@v4"
17+
- uses: "actions/checkout@v6"
1818
with:
1919
fetch-depth: 0
2020
path: "plugin_template"
21-
- uses: "actions/setup-python@v5"
21+
- uses: "actions/setup-python@v6"
2222
with:
2323
python-version: "3.11"
2424
- name: "Bootstrap catdog plugin"
@@ -47,7 +47,7 @@ jobs:
4747
run_tests: "${{ steps.check.outputs.run_tests }}"
4848
run_docs: "${{ steps.check.outputs.run_docs }}"
4949
steps:
50-
- uses: "actions/checkout@v4"
50+
- uses: "actions/checkout@v6"
5151
with:
5252
fetch-depth: 0
5353
path: "plugin_template"
@@ -92,7 +92,7 @@ jobs:
9292
mkdir -p "pulp_catdog"
9393
working-directory: "."
9494
- name: "Download Deprecations"
95-
uses: "actions/download-artifact@v4"
95+
uses: "actions/download-artifact@v8"
9696
with:
9797
pattern: "deprecations-*"
9898
path: "pulp_catdog"

.github/workflows/codeql-analysis.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,36 @@ name: "CodeQL"
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '37 1 * * 6'
6+
- cron: "37 1 * * 6"
77

88
concurrency:
9-
group: ${{ github.ref_name }}-${{ github.workflow }}
9+
group: "${{ github.ref_name }}-${{ github.workflow }}"
1010
cancel-in-progress: true
1111

1212
jobs:
1313
analyze:
14-
name: Analyze
15-
runs-on: ubuntu-latest
14+
name: "Analyze"
15+
runs-on: "ubuntu-latest"
1616
permissions:
17-
actions: read
18-
contents: read
19-
security-events: write
17+
actions: "read"
18+
contents: "read"
19+
security-events: "write"
2020

2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
language: [ 'python' ]
24+
language:
25+
- "python"
2526

2627
steps:
27-
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
- name: "Checkout repository"
29+
uses: "actions/checkout@v6"
2930

30-
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@v2
31+
- name: "Initialize CodeQL"
32+
uses: "github/codeql-action/init@v4"
3233
with:
33-
languages: ${{ matrix.language }}
34+
languages: "${{ matrix.language }}"
3435

35-
- name: Perform CodeQL Analysis
36-
uses: github/codeql-action/analyze@v2
36+
- name: "Perform CodeQL Analysis"
37+
uses: "github/codeql-action/analyze@v4"
38+
...

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: "ubuntu-latest"
2020

2121
steps:
22-
- uses: "actions/checkout@v4"
22+
- uses: "actions/checkout@v6"
2323
with:
2424
path: "plugin_template"
2525
# We need the full history for bootstrapping
2626
fetch-depth: 0
27-
- uses: "actions/setup-python@v5"
27+
- uses: "actions/setup-python@v6"
2828
with:
2929
python-version: "3.11"
3030
- name: "Lint plugin_template"

.github/workflows/pr_checks.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
name: "Catdog PR static checks"
1010
on:
1111
pull_request_target:
12-
types: ["opened", "synchronize", "reopened"]
12+
types:
13+
- "opened"
14+
- "synchronize"
15+
- "reopened"
16+
branches:
17+
- "main"
18+
- "[0-9]+.[0-9]+"
1319

1420
# This workflow runs with elevated permissions.
1521
# Do not even think about running a single bit of code from the PR.
@@ -26,18 +32,18 @@ jobs:
2632
permissions:
2733
pull-requests: "write"
2834
steps:
29-
- uses: "actions/checkout@v4"
35+
- uses: "actions/checkout@v6"
3036
with:
3137
fetch-depth: 0
32-
- uses: "actions/setup-python@v5"
38+
- uses: "actions/setup-python@v6"
3339
with:
3440
python-version: "3.11"
3541
- name: "Determine PR labels"
3642
run: |
3743
pip install GitPython==3.1.42
3844
git fetch origin ${{ github.event.pull_request.head.sha }}
3945
python .ci/scripts/pr_labels.py "origin/${{ github.base_ref }}" "${{ github.event.pull_request.head.sha }}" >> "$GITHUB_ENV"
40-
- uses: "actions/github-script@v7"
46+
- uses: "actions/github-script@v8"
4147
name: "Apply PR Labels"
4248
with:
4349
script: |

.github/workflows/sanity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
runs-on: "ubuntu-latest"
2323

2424
steps:
25-
- uses: "actions/checkout@v4"
25+
- uses: "actions/checkout@v6"
2626
with:
2727
path: "plugin_template"
2828
# We need the full history for bootstrapping
2929
fetch-depth: 0
3030

31-
- uses: "actions/setup-python@v5"
31+
- uses: "actions/setup-python@v6"
3232
with:
3333
python-version: "3.11"
3434

.github/workflows/test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
inputs:
1313
matrix_env:
1414
required: true
15-
type: string
15+
type: "string"
1616

1717
defaults:
1818
run:
@@ -24,16 +24,16 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
env: ${{ fromJSON(inputs.matrix_env) }}
27+
env: "${{ fromJSON(inputs.matrix_env) }}"
2828

2929
steps:
30-
- uses: "actions/checkout@v4"
30+
- uses: "actions/checkout@v6"
3131
with:
3232
path: "plugin_template"
3333
# We need the full history for bootstrapping
3434
fetch-depth: 0
3535

36-
- uses: "actions/setup-python@v5"
36+
- uses: "actions/setup-python@v6"
3737
with:
3838
python-version: "3.11"
3939

@@ -44,26 +44,26 @@ jobs:
4444
4545
# Below this line we include the steps of the ci workflow of the generated plugin
4646

47-
- uses: "actions/checkout@v4"
47+
- uses: "actions/checkout@v6"
4848
with:
4949
fetch-depth: 1
5050
repository: "pulp/pulp-openapi-generator"
5151
path: "pulp-openapi-generator"
5252

5353
- name: "Download plugin package"
54-
uses: "actions/download-artifact@v4"
54+
uses: "actions/download-artifact@v8"
5555
with:
5656
name: "plugin_package"
5757
path: "pulp_catdog/dist/"
5858

5959
- name: "Download API specs"
60-
uses: "actions/download-artifact@v4"
60+
uses: "actions/download-artifact@v8"
6161
with:
6262
name: "api_spec"
6363
path: "pulp_catdog/"
6464

6565
- name: "Download client packages"
66-
uses: "actions/download-artifact@v4"
66+
uses: "actions/download-artifact@v8"
6767
with:
6868
name: "python-client.tar"
6969
path: "pulp_catdog"
@@ -130,7 +130,7 @@ jobs:
130130
docker logs pulp 2>&1 | grep -i pulpcore.deprecation | tee deprecations-${{ matrix.env.TEST }}.txt
131131
132132
- name: "Upload Deprecations"
133-
uses: actions/upload-artifact@v4
133+
uses: "actions/upload-artifact@v5"
134134
with:
135135
name: "deprecations-${{ matrix.env.TEST }}"
136136
path: "pulp_catdog/deprecations-${{ matrix.env.TEST }}.txt"

templates/github/.github/workflows/build.yml.j2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ jobs:
4343
pulpcore-manager openapi --bindings --component "{{ plugin.app_label }}" --file "{{ plugin.app_label }}-api.json"
4444
{%- endfor %}
4545
- name: "Upload Package whl"
46-
uses: "actions/upload-artifact@v4"
46+
uses: "actions/upload-artifact@v5"
4747
with:
4848
name: "plugin_package"
4949
path: "{{ plugin_name }}/dist/"
5050
if-no-files-found: "error"
5151
retention-days: 5
5252
overwrite: true
5353
- name: "Upload API specs"
54-
uses: "actions/upload-artifact@v4"
54+
uses: "actions/upload-artifact@v5"
5555
with:
5656
name: "api_spec"
5757
path: |
@@ -65,7 +65,7 @@ jobs:
6565
{%- if plugins %}
6666
{{ run_script(name="Build Python bindings packages", file="build_python_client.sh") | indent(6) }}
6767
- name: "Upload python client packages"
68-
uses: "actions/upload-artifact@v4"
68+
uses: "actions/upload-artifact@v5"
6969
with:
7070
name: "python-client.tar"
7171
path: |
@@ -76,7 +76,7 @@ jobs:
7676
retention-days: 5
7777
overwrite: true
7878
- name: "Upload python client docs"
79-
uses: "actions/upload-artifact@v4"
79+
uses: "actions/upload-artifact@v5"
8080
with:
8181
name: "python-client-docs.tar"
8282
path: |
@@ -89,7 +89,7 @@ jobs:
8989
{%- if deploy_client_to_rubygems %}
9090
{{ run_script(name="Build Ruby bindings packages", file="build_ruby_client.sh") | indent(6) }}
9191
- name: "Upload Ruby client"
92-
uses: "actions/upload-artifact@v4"
92+
uses: "actions/upload-artifact@v5"
9393
with:
9494
name: "ruby-client.tar"
9595
path: |

templates/github/.github/workflows/ci.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
mkdir -p "{{ plugin_name }}"
116116
working-directory: "."
117117
- name: "Download Deprecations"
118-
uses: "actions/download-artifact@v4"
118+
uses: "actions/download-artifact@v8"
119119
with:
120120
pattern: "deprecations-*"
121121
path: "{{ plugin_name }}"

0 commit comments

Comments
 (0)