Skip to content

Commit

Permalink
Merge pull request #20 from sbt/wip/pull_request
Browse files Browse the repository at this point in the history
Another way to send a PR
  • Loading branch information
eed3si9n authored Oct 31, 2024
2 parents 7aec792 + 20c884b commit 6a0297d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/update-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,11 @@ jobs:
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/github-script@v7

- name: Create Pull Request
if: steps.update_default.outputs.pushed == 'true'
uses: peter-evans/create-pull-request@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
head: "update-default-sbt-${{ steps.update_default.outputs.sbt_version }}",
base: "${{ github.ref_name }}",
title: "update default sbt version to ${{ steps.update_default.outputs.sbt_version }}"
});
title: "deps: Update sbt version"
branch: generation
base: ${{ github.head_ref }}

0 comments on commit 6a0297d

Please sign in to comment.