From cd9e0a37f65789caa5e0cb0839463c6c1e6511f9 Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Thu, 18 Jan 2024 12:42:26 -0800 Subject: [PATCH] ci: Use GITHUB_OUTPUT envvar instead of set-output command `save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/). This PR updates the usage of `set-output` to `$GITHUB_OUTPUT` Instructions for envvar usage from GitHub docs: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter --- .github/workflows/maven-deploy-cm.yml | 2 +- .github/workflows/maven-sdk-update.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-deploy-cm.yml b/.github/workflows/maven-deploy-cm.yml index 68b857a7c..eccd6abc4 100644 --- a/.github/workflows/maven-deploy-cm.yml +++ b/.github/workflows/maven-deploy-cm.yml @@ -61,7 +61,7 @@ jobs: id: getCommit run: | echo "Commit: ${ARCHETYPE_COMMIT}" - echo ::set-output name=commit::${ARCHETYPE_COMMIT} + echo "commit=${ARCHETYPE_COMMIT}" >> $GITHUB_OUTPUT # Create new project - name: Create new project with the archetype run: | diff --git a/.github/workflows/maven-sdk-update.yml b/.github/workflows/maven-sdk-update.yml index 3ff9f1b9e..3aaa5c195 100644 --- a/.github/workflows/maven-sdk-update.yml +++ b/.github/workflows/maven-sdk-update.yml @@ -63,7 +63,7 @@ jobs: id: getCommit run: | echo "Commit: ${ARCHETYPE_COMMIT}" - echo ::set-output name=commit::${ARCHETYPE_COMMIT} + echo "commit=${ARCHETYPE_COMMIT}" >> $GITHUB_OUTPUT # Create new project - name: Create new project with the archetype run: |