Skip to content

Commit

Permalink
auto create fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Nov 1, 2023
1 parent e1ee72e commit b9df6f3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ jobs:
JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
- name: Create fix version
run: |
curl --request POST \
--url '$JIRA_BASE_URL/rest/api/2/version' \
--user '$JIRA_USER_EMAIL:$JIRA_API_TOKEN' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "$FIX_VERSION",
"projectId": 20084
}'
env:
JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
FIX_VERSION: Acquia CLI ${{ github.event.release.name }}
- name: Create CCB ticket in Jira
id: create
uses: atlassian/gajira-create@v3
Expand Down

0 comments on commit b9df6f3

Please sign in to comment.