Skip to content

Commit

Permalink
refactor(ci): improve update paths job with per-branch names and chec…
Browse files Browse the repository at this point in the history
…k out non-main branch (#2400)
  • Loading branch information
p0mvn authored Aug 13, 2022
1 parent 1313b63 commit a1dc694
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/import_paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
-
name: Check out repository code
uses: actions/checkout@v2
with:
ref: ${{ inputs.target-branch }}
-
name: Setup Golang
uses: actions/setup-go@v2.1.4
Expand Down Expand Up @@ -61,7 +63,7 @@ jobs:
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.COMMIT_TO_BRANCH }}
title: "auto: update Go import paths to v${{ inputs.version }}"
title: "auto: update Go import paths to v${{ inputs.version }} on branch ${{ inputs.target-branch }}"
commit-message: "auto: update Go import paths to v${{ inputs.version }}"
body: "**Automated pull request**\n\nUpdating Go import paths to v${{ inputs.version }}"
base: ${{ inputs.target-branch }}
Expand Down

0 comments on commit a1dc694

Please sign in to comment.