Skip to content

Commit

Permalink
WX-1210 Added JIRA ID for Cromwhelm auto commit message (#7180)
Browse files Browse the repository at this point in the history
  • Loading branch information
JVThomas authored Jul 20, 2023
1 parent af9660e commit 4ca252c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/chart_update_on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
if: github.event.pull_request.merged == true
runs-on: self-hosted # Faster machines; see https://github.com/broadinstitute/cromwell/settings/actions/runners
steps:
- name: Fetch Jira ID from the commit message
id: fetch-jira-id
run: |
JIRA_ID=$(echo '${{ github.event.head_commit.message }}' | grep -Eo '\[?[A-Z][A-Z]+-[0-9]+\]?')
[[ -z "$JIRA_ID" ]] && { echo "No Jira ID found in $1" ; exit 1; }
echo "JIRA_ID=$JIRA_ID" >> $GITHUB_OUTPUT
- name: Clone Cromwell
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -82,5 +88,5 @@ jobs:
git diff
git config --global user.name "broadbot"
git config --global user.email "[email protected]"
git commit -am "Auto update to Cromwell $CROMWELL_VERSION"
git commit -am "${{ steps.fetch-jira-id.outputs.JIRA_ID }}: Auto update to Cromwell $CROMWELL_VERSION"
git push https://broadbot:[email protected]/broadinstitute/cromwhelm.git main

0 comments on commit 4ca252c

Please sign in to comment.