-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MARP-1053 Update release drafter workflows for branch release/12.0 > …
…Try out
- Loading branch information
1 parent
f1e4754
commit adce85f
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Reusable Release Drafter | ||
|
||
on: | ||
workflow_call: | ||
|
||
env: | ||
DRAFTER_NAME: Next Release 🛒 | ||
DRAFTER_TAG: next | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Configure Release Draft Settings | ||
run: | | ||
if [[ "$GITHUB_REF_NAME" = release/* ]]; then | ||
RELEASE_VERSION="${GITHUB_REF_NAME#release/}" | ||
echo "DRAFTER_NAME=Next Release $RELEASE_VERSION 🛒" >> $GITHUB_ENV | ||
echo "DRAFTER_TAG=next-$RELEASE_VERSION" >> $GITHUB_ENV | ||
echo $DRAFTER_NAME | ||
echo $DRAFTER_TAG | ||
echo $github.ref | ||
fi | ||
- uses: release-drafter/release-drafter@v6 | ||
with: | ||
name: ${{ env.DRAFTER_NAME }} | ||
tag: ${{ env.DRAFTER_TAG }} | ||
commitish: "refs/heads/release/12.0" | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters