We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76578e8 commit 903a3e4Copy full SHA for 903a3e4
.github/workflows/github-actions-update-rules.yml
@@ -38,11 +38,14 @@ jobs:
38
run: |
39
git config --local user.email "github-actions[bot]@users.noreply.github.com"
40
git config --local user.name "github-actions[bot]"
41
- echo $(git status --porcelain)
42
- echo "has_update=$(git status --porcelain)" >> "$GITHUB_OUTPUT"
+ if [ -n "$(git status --porcelain)" ]; then
+ echo "has_update=true" >> "$GITHUB_OUTPUT"
43
+ else
44
+ echo "has_update=false" >> "$GITHUB_OUTPUT"
45
+ fi
46
git add .
47
git commit -m "flow: update rules based on new golden reference"
- - if: "steps.remote-update.outputs.has_update != ''"
48
+ - if: "steps.remote-update.outputs.has_update == 'true'"
49
name: Create Draft PR
50
uses: peter-evans/create-pull-request@v5
51
with:
0 commit comments