Skip to content

Commit 1f95111

Browse files
fix(ci): Update GitHub Actions to current versions
actions/checkout v2 and actions/setup-java v1 are incompatible with the Node.js 24 runtime now enforced on GitHub Actions runners, causing the maven-release workflow to fail. - actions/checkout: v2 → v4 - actions/setup-java: v1 → v4 (requires distribution field) - actions/setup-python: v2 → v5 - pypa/gh-action-pypi-publish: @master → @release/v1
1 parent 3ae497f commit 1f95111

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/maven-release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
AWS_REGION: us-east-1
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Java & publishing credentials
18-
uses: actions/setup-java@v1
18+
uses: actions/setup-java@v4
1919
with:
20-
java-version: 17
20+
java-version: '17'
21+
distribution: 'corretto'
2122
server-id: sonatype-nexus-staging # Value of the distributionManagement/repository/id field of the pom.xml
2223
server-username: SONATYPE_USERNAME # env variable for username in deploy
2324
server-password: SONATYPE_PASSWORD # env variable for token in deploy

.github/workflows/pr-ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ jobs:
1818
java: [17]
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222
- name: Set up Python ${{ matrix.python }}
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python }}
2626
- name: Set up Java ${{ matrix.java }}
27-
uses: actions/setup-java@v1
27+
uses: actions/setup-java@v4
2828
with:
2929
java-version: ${{ matrix.java }}
30+
distribution: 'corretto'
3031
- name: Install python dependencies
3132
run: |
3233
pip install --upgrade 'attrs==19.2.0' wheel -r https://raw.githubusercontent.com/aws-cloudformation/cloudformation-cli/master/requirements.txt

.github/workflows/pypi-release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
if: endsWith(github.ref, '-plugin')
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Set up Python 3.8
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v5
1616
with:
17-
python-version: 3.8
17+
python-version: '3.8'
1818
- name: Install dependencies
1919
run: |
2020
pip install --upgrade wheel twine
2121
- name: Package project
2222
run: |
2323
python setup.py sdist bdist_wheel
2424
- name: Publish distribution 📦 to PyPI (If triggered from release)
25-
uses: pypa/gh-action-pypi-publish@master
25+
uses: pypa/gh-action-pypi-publish@release/v1
2626
with:
2727
password: ${{ secrets.PYPI_API_KEY_CLOUDFORMATION_CLI_JAVA_PLUGIN }}

0 commit comments

Comments
 (0)