Skip to content

Commit b3c36bd

Browse files
committed
Split dirty check into its own step
1 parent ec6739e commit b3c36bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ipxe_version.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525
id: version
2626

2727
- name: Update version string
28-
id: update
2928
run: |
3029
sed -Ei 's/(IPXE_REF: )[0-9a-f]{40}/\1${{ steps.version.outputs.sha }}/' .github/workflows/ipxe_build.yaml
3130
31+
- name: Check dirty status
32+
id: dirty
33+
run: |
3234
# set a flag if something was changed
3335
if git diff-index --quiet HEAD --; then
3436
echo "::set-output name=dirty::false"
@@ -37,7 +39,7 @@ jobs:
3739
fi
3840
3941
- name: Create pull request
40-
if: steps.update.outputs.dirty == 'true'
42+
if: steps.dirty.outputs.dirty == 'true'
4143
uses: peter-evans/create-pull-request@v4
4244
with:
4345
title: ':arrow_up: Bump ipxe/ipxe to ${{ steps.version.outputs.sha-short }}'

0 commit comments

Comments
 (0)