Skip to content

Commit 0dac595

Browse files
committed
fix: Update deprecated GitHub Actions to latest versions
Updated all GitHub Actions to resolve deprecation warnings and failures: **Actions Updated:** - actions/checkout: v3 → v4 (5 instances) - actions/setup-python: v4 → v5 (5 instances) - actions/upload-artifact: v3 → v4 (1 instance) **Root Cause:** GitHub deprecated v3 of artifact actions on April 16, 2024. Workflows using the old versions now fail with: "This request has been automatically failed because it uses a deprecated version of actions/upload-artifact: v3" **Changes:** - ci.yml: Updated checkout and setup-python actions - harmony-check.yml: Updated all actions across 4 jobs: * Job 1: harmony-check * Job 2: harmony-json-report (includes upload-artifact fix) * Job 3: harmony-strict-check * Job 4: harmony-exit-codes-demo **Benefits:** - ✅ Resolves workflow failures from deprecated actions - ✅ Uses latest stable action versions with improvements - ✅ Future-proofs CI/CD pipeline - ✅ Maintains backward compatibility with Python 3.8-3.12 **Testing:** - ✅ YAML syntax validates successfully - ✅ All action versions verified as latest stable Reference: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
1 parent d5e636c commit 0dac595

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121

.github/workflows/harmony-check.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Set up Python
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: '3.11'
2222

@@ -59,10 +59,10 @@ jobs:
5959

6060
steps:
6161
- name: Checkout code
62-
uses: actions/checkout@v3
62+
uses: actions/checkout@v4
6363

6464
- name: Set up Python
65-
uses: actions/setup-python@v4
65+
uses: actions/setup-python@v5
6666
with:
6767
python-version: '3.11'
6868

@@ -104,7 +104,7 @@ jobs:
104104
fi
105105
106106
- name: Upload JSON Report as Artifact
107-
uses: actions/upload-artifact@v3
107+
uses: actions/upload-artifact@v4
108108
with:
109109
name: harmony-report
110110
path: harmony-report.json
@@ -150,10 +150,10 @@ jobs:
150150

151151
steps:
152152
- name: Checkout code
153-
uses: actions/checkout@v3
153+
uses: actions/checkout@v4
154154

155155
- name: Set up Python
156-
uses: actions/setup-python@v4
156+
uses: actions/setup-python@v5
157157
with:
158158
python-version: '3.11'
159159

@@ -186,10 +186,10 @@ jobs:
186186

187187
steps:
188188
- name: Checkout code
189-
uses: actions/checkout@v3
189+
uses: actions/checkout@v4
190190

191191
- name: Set up Python
192-
uses: actions/setup-python@v4
192+
uses: actions/setup-python@v5
193193
with:
194194
python-version: '3.11'
195195

0 commit comments

Comments
 (0)