-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
1 changed file
with
7 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 |
---|---|---|
|
@@ -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: | ||
|
@@ -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 |