Skip to content

Commit

Permalink
updated to use Github env variables due to action warning deprecating…
Browse files Browse the repository at this point in the history
… use of set-output
  • Loading branch information
mcamick committed Oct 6, 2024
1 parent 6b37bf5 commit 66585d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-zarf-injector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
run: |
if git diff --quiet; then
echo "No changes detected."
echo "::set-output name=changes::false"
echo "changes=false" >> $GITHUB_ENV
else
echo "Changes detected."
echo "::set-output name=changes::true"
echo "changes=true" >> $GITHUB_ENV
fi
- name: Commit and push changes
if: steps.git_status.outputs.changes == 'true'
if: env.changes == 'true'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "GitHub Actions Bot"
Expand Down

0 comments on commit 66585d0

Please sign in to comment.