From 3737a4665c0a447c9c3f6d92bf210cb2f555b450 Mon Sep 17 00:00:00 2001 From: Andreas Maier Date: Wed, 25 Sep 2024 14:02:00 +0200 Subject: [PATCH] Upgraded node.js versions in GitHub Actions workflows Signed-off-by: Andreas Maier --- .github/workflows/publish.yml | 20 ++++++++++---------- .github/workflows/test.yml | 2 +- changes/noissue.3.fix.rst | 2 ++ 3 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 changes/noissue.3.fix.rst diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a19ddf00..e3ae50c4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: #-------- Info gathering and checks - name: Set pushed tag id: set-tag - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: result-encoding: string script: | @@ -37,7 +37,7 @@ jobs: fi - name: Determine whether releasing the master branch id: set-is-master-branch - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: result-encoding: string script: | @@ -53,7 +53,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Determine name of stable branch for pushed tag id: set-stable-branch - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: result-encoding: string script: | @@ -62,7 +62,7 @@ jobs: return result - name: Determine whether releasing stable branch for pushed tag id: set-is-stable-branch - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: result-encoding: string script: | @@ -91,7 +91,7 @@ jobs: fi - name: Set update version id: set-update-version - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: result-encoding: string script: | @@ -115,11 +115,11 @@ jobs: #-------- Setup of work environment - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python 3.10 - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Development setup @@ -136,14 +136,14 @@ jobs: # - name: Publish distribution to TestPyPI # uses: pypa/gh-action-pypi-publish@release/v1 # with: - # packages_dir: dist + # packages-dir: dist # password: ${{ secrets.TEST_PYPI_API_TOKEN }} # repository_url: https://test.pypi.org/legacy/ - name: Publish distribution to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: - packages_dir: dist + packages-dir: dist password: ${{ secrets.PYPI_API_TOKEN }} #-------- Creation of Github release @@ -169,7 +169,7 @@ jobs: #-------- Creation of stable branch - name: Create new stable branch when releasing master branch if: steps.set-is-master-branch.outputs.result == 'true' - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.git.createRef({ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0095dc71..4c74c1c6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -109,7 +109,7 @@ jobs: steps: - name: Set run type (normal, scheduled, release) id: set-run-type - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: result-encoding: string script: | diff --git a/changes/noissue.3.fix.rst b/changes/noissue.3.fix.rst new file mode 100644 index 00000000..ea9600ce --- /dev/null +++ b/changes/noissue.3.fix.rst @@ -0,0 +1,2 @@ +Test: Upgraded GitHub actions plugin versions to warnings about using deprecated +node.js version 16.