Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix fetching pull request ID

Grzegorzdc93ef13d16c
diff --git a/.github/workflows/migrations-perf-test.yml b/.github/workflows/migrations-perf-test.yml
index 064f16775d..ee0e67e71a 100644
--- a/.github/workflows/migrations-perf-test.yml
+++ b/.github/workflows/migrations-perf-test.yml
@@ -25,6 +25,10 @@ jobs:
region: us-east-1
tags: ${{ env.GITHUB_HEAD_REF_SLUG_URL }},${{ github.sha }}
+ - name: Get pull number
+ run: |
+ echo "PULL_ID=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")" >> $GITHUB_ENV
+
- name: Invoke deployment lambda
uses: gagoar/[email protected]
with:
@@ -37,7 +41,7 @@ jobs:
"action": "${{ github.event.action }}",
"label": "${{ env.GITHUB_HEAD_REF_SLUG_URL }}",
"image": "${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/saleor-testenvs:${{ github.sha }}",
- "pr_id": "$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")"
+ "pr_id": "${{ env.PULL_ID }}"
}
LogType: Tail
@@ -49,6 +53,10 @@ jobs:
- uses: actions/checkout@v2
- uses: rlespinasse/[email protected]
+ - name: Get pull number
+ run: |
+ echo "PULL_ID=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")" >> $GITHUB_ENV
+
- name: Invoke deployment lambda
uses: gagoar/[email protected]
with:
@@ -61,6 +69,6 @@ jobs:
"action": "${{ github.event.action }}",
"label": "${{ env.GITHUB_HEAD_REF_SLUG_URL }}",
"image": "${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/saleor-testenvs:${{ github.sha }}",
- "pr_id": "$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")"
+ "pr_id": "${{ env.PULL_ID }}"
}
LogType: Tail