From b9df6f3a229a0042710f0b8968088d2f9ed6c75d Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 1 Nov 2023 13:51:27 -0700 Subject: [PATCH] auto create fix version --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c87cb984..10f17943b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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