Skip to content

Commit 1c65afd

Browse files
Upgrade rebuild-pots action to use GITHUB_ENV
Old method is deprecated and will be removed later. https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1 parent 414272e commit 1c65afd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/rebuild-pots.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,17 @@ jobs:
6565
git commit -m "Update installer en_US pot"
6666
fi
6767
68-
echo "::echo::on"
69-
7068
# Check for local commits
7169
if [[ $(git diff --name-only "@{upstream}..") ]]
7270
then
73-
echo "::set-output name=has_changes::true"
71+
echo "has_changes=true" >> $GITHUB_ENV
7472
else
75-
echo "::set-output name=has_changes::false"
73+
echo "has_changes=false" >> $GITHUB_ENV
7674
fi
7775
7876
# Get rid of all other changes
7977
git checkout -- .
8078
git clean -fd
81-
- if: ${{ steps.stage_changes.outputs.has_changes == 'true' }}
79+
- if: ${{ env.has_changes == 'true' }}
8280
name: Push changes
8381
run: git push

0 commit comments

Comments
 (0)