-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dominik/hotfix-automation' into dominik/test-base-branch
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
10 changes: 7 additions & 3 deletions
10
.github/actions/asana-add-comment/templates/hotfix-branch-ready.yml
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
data: | ||
# yq -o=j | sed -E 's/\\n( *)([^\\n])/\2/g' | ||
html_text: | | ||
<body> | ||
<h2>Hotfix release branch ${BRANCH} is ready</h2> | ||
<a data-asana-gid='${ASSIGNEE_ID}'/>, please follow up with having code merged to <code>${BRANCH}</code> and making a release build.</a>. | ||
<h2>Hotfix branch ${BRANCH} ready ⚙️</h2> | ||
<ul> | ||
<li>🔱 <code>${BRANCH}</code> branch has been created off <code>${RELEASE_TAG}</code> tag.</li> | ||
<li>Point any pull requests with changes required for the hotfix release to that branch.</li> | ||
</ul> | ||
🔗 Workflow URL: <a href='${WORKFLOW_URL}'>${WORKFLOW_URL}</a>. | ||
</body> | ||
</body> |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Prepare Hotfix Release | ||
name: Set Up Hotfix Release Branch | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -44,6 +44,7 @@ jobs: | |
git config --global user.name "Dax the Duck" | ||
git config --global user.email "[email protected]" | ||
last_release="$(gh api repos/${{ github.repository }}/releases/latest | jq -r .tag_name)" | ||
echo "last_release=$last_release" >> $GITHUB_OUTPUT | ||
bundle exec fastlane prepare_hotfix version:"$last_release" | ||
- name: Create release task | ||
|
@@ -76,3 +77,13 @@ jobs: | |
-H "Content-Type: application/json" \ | ||
--output /dev/null \ | ||
-d "{ \"data\": { \"assignee\": \"$assignee_id\" }}" | ||
- name: Report success | ||
uses: ./.github/actions/asana-add-comment | ||
env: | ||
BRANCH: ${{ steps.make_release_branch.outputs.release_branch_name }} | ||
RELEASE_TAG: ${{ steps.make_release_branch.outputs.last_release }} | ||
with: | ||
access-token: ${{ secrets.ASANA_ACCESS_TOKEN }} | ||
task-url: ${{ steps.create_release_task.outputs.asana_task_url }} | ||
template-name: hotfix-branch-ready |