Skip to content

Bump pytest-cov from 4.1.0 to 5.0.0 #2

Bump pytest-cov from 4.1.0 to 5.0.0

Bump pytest-cov from 4.1.0 to 5.0.0 #2

name: Publish for load test
on:
pull_request:
types: [reopened, synchronize, labeled]
branches: ["**"]
jobs:
init:
if: ${{ ((github.event.action == 'labeled') && (github.event.label.name == 'load test')) || ((github.event.action != 'labeled') && contains(github.event.pull_request.labels.*.name, 'load test')) }}
runs-on: ubuntu-20.04
outputs:
version: ${{ steps.variables.outputs.version }}
steps:
- name: Prepare variables
id: variables
run:
set -x
branch=${{ github.event.pull_request.head.ref }}
branch_slug=$(echo "$branch" | sed 's@/@-@g')
branch_sha=${{ github.event.pull_request.head.sha }}
image_version="${branch_slug}-${branch_sha:0:8}"
echo "VERSION=${image_version}" >> $GITHUB_OUTPUT
publish:

Check failure on line 27 in .github/workflows/publish-load-test.yml

View workflow run for this annotation

GitHub Actions / Publish for load test

Invalid workflow file

The workflow is not valid. .github/workflows/publish-load-test.yml (Line: 27, Col: 3): Error calling workflow 'MahirSalahin/saleor/.github/workflows/publish-containers.yml@a326c970b6afec0d4fc9ec8dfb1069050e6081cf'. The nested job 'docker' is requesting 'packages: write', but is only allowed 'packages: read'.
needs:
- init
uses: ./.github/workflows/publish-containers.yml
with:
version: ${{ needs.init.outputs.version }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLOUD_CI_WEBHOOK_URL }}
SLACK_MENTION_GROUP_ID: ${{ secrets.SLACK_CORE_SUPPORT_GROUP_ID }}
deploy:
runs-on: ubuntu-20.04
needs:
- publish
steps:
- name: Trigger load test deployment
run: |
curl -f -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${{ secrets.SALEOR_RELEASE_TOKEN }}" \
https://api.github.com/repos/saleor/saleor-multitenant/dispatches \
-d "{\"event_type\":\"deploy-load-test\",\"client_payload\":{\"version\":\"${{ needs.publish.outputs.version }}\",\"branch\":\"${{ github.event.pull_request.base.ref }}\"}}"