Skip to content

Commit

Permalink
MARP-1053 Update release drafter workflows for branch release/12.0 > …
Browse files Browse the repository at this point in the history
…Try out
  • Loading branch information
lttung-axonivy committed Jan 14, 2025
1 parent f1e4754 commit adce85f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/market-release-drafter-action.yml
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 }}
3 changes: 2 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
- release/*
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
release_drafter:
uses: axonivy-market/github-workflows/.github/workflows/release-drafter.yml@v5
uses: axonivy-market/portal/.github/workflows/market-release-drafter-action.yml@feature/12.0/MARP-1053-Update-release-drafter-and-publisher-workflows

0 comments on commit adce85f

Please sign in to comment.