From 3e9dc3514ee410de08ad9e53e6f5d27217126beb Mon Sep 17 00:00:00 2001 From: Stephan Fuhrmann Date: Thu, 18 Jan 2024 14:52:19 +0100 Subject: [PATCH 1/2] Update actions to fix "The following actions uses node12 which is deprecated and will be forced to run on node16" --- .github/workflows/build-release.yml | 2 +- .github/workflows/build.yml | 4 ++-- .github/workflows/lint.yml | 4 ++-- .github/workflows/pytest.yml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 97c7065..4ed8e4e 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Initialize Checkmk Site run: /docker-entrypoint.sh /bin/true - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup links run: .devcontainer/symlink.sh - name: Update GITHUB_PATH diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74064b6..eeccf54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Initialize Checkmk Site run: /docker-entrypoint.sh /bin/true - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup links run: .devcontainer/symlink.sh - name: Update GITHUB_PATH @@ -33,7 +33,7 @@ jobs: run: .devcontainer/build.sh id: cmkpkg - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: ${{ steps.cmkpkg.outputs.pkgfile }} path: ${{ steps.cmkpkg.outputs.pkgfile }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 09d5a6a..6c5cbf1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install flake8 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 96effe7..308ae62 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Initialize Checkmk Site run: /docker-entrypoint.sh /bin/true - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup links run: ./.devcontainer/symlink.sh - name: Install pytest From a5b84353203210bbe36828f2895a645b532782fe Mon Sep 17 00:00:00 2001 From: Stephan Fuhrmann Date: Thu, 18 Jan 2024 14:58:42 +0100 Subject: [PATCH 2/2] Migrate deprecated set-output commands See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .devcontainer/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.devcontainer/build.sh b/.devcontainer/build.sh index 2701331..75f5a47 100755 --- a/.devcontainer/build.sh +++ b/.devcontainer/build.sh @@ -8,8 +8,8 @@ mkp -v pack $NAME # Set Outputs for GitHub Workflow steps if [ -n "$GITHUB_WORKSPACE" ]; then - echo "::set-output name=pkgfile::$(ls *.mkp)" - echo "::set-output name=pkgname::${NAME}" + echo "pkgfile=$(ls *.mkp)" >> $GITHUB_OUTPUT + echo "pkgname=${NAME}" >> $GITHUB_OUTPUT VERSION=$(python -c 'print(eval(open("package").read())["version"])') - echo "::set-output name=pkgversion::$VERSION" + echo "pkgversion=$VERSION" >> $GITHUB_OUTPUT fi \ No newline at end of file