Skip to content

Commit

Permalink
Adjust the script a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Oct 31, 2024
1 parent 6a0297d commit 1881611
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/update-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ jobs:
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github actions"
if git commit -m "update default sbt version to ${SBT_VERSION}"; then
git push -f origin HEAD:"update-default-sbt-${SBT_VERSION}"
echo "pushed=true" >> $GITHUB_OUTPUT
echo "changed=true" >> $GITHUB_OUTPUT
echo "sbt_version=${SBT_VERSION}" >> $GITHUB_OUTPUT
else
echo "pushed=false" >> $GITHUB_OUTPUT
echo "changed=false" >> $GITHUB_OUTPUT
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

0 comments on commit 1881611

Please sign in to comment.