Skip to content

Commit fb74717

Browse files
committed
It never makes a PR without changes anyways
Want to revisit this later though, since it's clearer in the action log if there was a PR made or not
1 parent eccd5a5 commit fb74717

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/ipxe_version.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,9 @@ jobs:
1919

2020
- name: Update version string
2121
run: |
22-
sed -Ei 's/(IPXE_REF: )[0-9a-f]{40}/\1${{ steps.version.outputs.sha }}/' .github/workflows/ipxe_build.yaml
23-
24-
- name: Check dirty status
25-
id: dirty
26-
run: |
27-
# set a flag if something was changed
28-
if git diff-index --quiet HEAD --; then
29-
echo "::set-output name=dirty::false"
30-
else
31-
echo "::set-output name=dirty::true"
32-
fi
22+
sed -Ei 's/(IPXE_REF:) [0-9a-f]{40}/\1 ${{ steps.version.outputs.sha }}/' .github/workflows/ipxe_build.yaml
3323
3424
- name: Create pull request
35-
if: steps.dirty.outputs.dirty == 'true'
3625
uses: peter-evans/create-pull-request@v4
3726
with:
3827
title: ':arrow_up: Bump ipxe/ipxe'

0 commit comments

Comments
 (0)