Skip to content

Commit 48a48d7

Browse files
authored
Merge pull request #22 from sbt/wip/adjust
Adjust the script a bit
2 parents 6a0297d + 1881611 commit 48a48d7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/update-default.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,18 @@ jobs:
2020
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
2121
git config --global user.name "github actions"
2222
if git commit -m "update default sbt version to ${SBT_VERSION}"; then
23-
git push -f origin HEAD:"update-default-sbt-${SBT_VERSION}"
24-
echo "pushed=true" >> $GITHUB_OUTPUT
23+
echo "changed=true" >> $GITHUB_OUTPUT
2524
echo "sbt_version=${SBT_VERSION}" >> $GITHUB_OUTPUT
2625
else
27-
echo "pushed=false" >> $GITHUB_OUTPUT
26+
echo "changed=false" >> $GITHUB_OUTPUT
2827
fi
2928
env:
3029
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3130

3231
- name: Create Pull Request
33-
if: steps.update_default.outputs.pushed == 'true'
32+
if: steps.update_default.outputs.changed == 'true'
3433
uses: peter-evans/create-pull-request@v4
3534
with:
36-
title: "deps: Update sbt version"
37-
branch: generation
35+
title: "deps: Update sbt to ${{ steps.update_default.outputs.sbt_version }}"
36+
branch: "update-default-sbt-${{ steps.update_default.outputs.sbt_version }}"
3837
base: ${{ github.head_ref }}

0 commit comments

Comments
 (0)