Skip to content

Commit 01f5600

Browse files
committed
workflows: Upgrade actions to latest versions.
This updates actions to: * `actions/checkout@v4` * `actions/setup-python@v5` * `actions/setup-node@v4` * `actions/upload-artifact@v4` * `microsoft/setup-msbuild@v1.3.3` This is because of the following error which we have been receiving in the CI: ``` Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v2`. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/ ``` This does not attempt to fix the pre-existing build issues caused by typing problems introduced in other commits.
1 parent 40b3cbb commit 01f5600

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v1
17+
- uses: actions/checkout@v4
1818
- name: Log into registry
1919
run: |
2020
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ jobs:
2323

2424
steps:
2525
- name: Checkout branch with changes
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2727
with:
2828
path: current
2929
- name: Checkout master branch
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v4
3131
with:
3232
path: master
3333
ref: master
3434
- name: Set up Node.js
35-
uses: actions/setup-node@v2
35+
uses: actions/setup-node@v4
3636
with:
3737
node-version: '14'
3838
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v2
39+
uses: actions/setup-python@v5
4040
with:
4141
python-version: ${{ matrix.python-version }}
4242
- name: Setup environment variables
@@ -97,12 +97,12 @@ jobs:
9797
true; done < ./artifacts-diff/files.list
9898
sed -i '/Diff to HTML by/d' ./artifacts-diff/*
9999
- name: Upload generated policies
100-
uses: actions/upload-artifact@v2
100+
uses: actions/upload-artifact@v4
101101
with:
102102
name: capirca_output_${{ matrix.python-version }}_${{ env.wfdt }}
103103
path: ./artifacts/capirca_output_${{ env.wfdt }}.zip
104104
- name: Upload policy differences
105-
uses: actions/upload-artifact@v2
105+
uses: actions/upload-artifact@v4
106106
with:
107107
name: capirca_output_policy_diff
108108
path: ./artifacts-diff

.github/workflows/pypi_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Set up Python
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: '3.x'
1818
- name: Install dependencies

.github/workflows/windows.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
python-version: [3.8, 3.9]
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
25-
- uses: actions/cache@v2
25+
- uses: actions/cache@v4
2626
with:
2727
path: ~\AppData\Local\pip\Cache
2828
key: ${{ runner.os }}-${{ matrix.python-version}}-pip-test-${{ hashFiles('setup.py','requirements.txt','test-requirements.txt') }}
@@ -31,7 +31,7 @@ jobs:
3131
${{ runner.os }}-${{ matrix.python-version}}-pip-
3232
${{ runner.os }}-${{ matrix.python-version}}-
3333
- name: Add msbuild to PATH
34-
uses: microsoft/setup-msbuild@v1.0.2
34+
uses: microsoft/setup-msbuild@v1.3.3
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
@@ -46,7 +46,7 @@ jobs:
4646
aclgen --output_directory .\output --logtostderr
4747
powershell Compress-Archive -Force output\* output.zip
4848
- name: Upload generated policies
49-
uses: actions/upload-artifact@v2
49+
uses: actions/upload-artifact@v4
5050
with:
5151
name: capirca_output_${{ matrix.python-version }}
5252
path: ./output.zip

0 commit comments

Comments
 (0)