Skip to content

Commit

Permalink
fix deprecate of set output
Browse files Browse the repository at this point in the history
  • Loading branch information
Long Le authored and Long Le committed Sep 4, 2024
1 parent 95f6892 commit d6bb904
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/env-promotion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d6bb904

Please sign in to comment.