From d6bb904a0eca67f95374cff901ea8a866e9db0f2 Mon Sep 17 00:00:00 2001 From: Long Le Date: Wed, 4 Sep 2024 13:59:18 -0400 Subject: [PATCH] fix deprecate of set output --- .github/workflows/env-promotion.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/env-promotion.yml b/.github/workflows/env-promotion.yml index 5d864dc..bd37902 100644 --- a/.github/workflows/env-promotion.yml +++ b/.github/workflows/env-promotion.yml @@ -60,11 +60,16 @@ jobs: # Check for modified files - name: Check for modified files id: git-check - run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi) - + run: | + if [ -n "$(git status --porcelain)" ]; then + echo "modified=true" >> $GITHUB_ENV + else + echo "modified=false" >> $GITHUB_ENV + fi + # Push changes to remote repository - name: Commit changes - if: steps.git-check.outputs.modified == 'true' + if: env.modified == 'true' env: ORG_NAME: ${{ secrets.ORG_NAME }} ORG_EMAIL: ${{ secrets.ORG_EMAIL }}