CI: fix release pr target (#90999)

* use inputs.target as checkout ref, and `main` for all reused actions.
This commit is contained in:
Kevin Minehart
2024-07-25 16:14:29 -05:00
committed by GitHub
parent 3137410f3f
commit 2fe506d502
3 changed files with 17 additions and 24 deletions
+2 -1
View File
@@ -62,6 +62,7 @@ jobs:
- name: "Checkout Grafana repo"
uses: "actions/checkout@v4"
with:
ref: main
sparse-checkout: |
.github/workflows
CHANGELOG.md
@@ -123,7 +124,7 @@ jobs:
--label "no-backport" \
--label "no-changelog" \
-B "${{ inputs.target }}" \
--title "Release: ${{ inputs.version }}" \
--title "Release: update changelog for ${{ inputs.version }}" \
--body "Changelog changes for release ${{ inputs.version }}"
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}