feat: add scaletargetref exists check in webhook and revise some variable name #7124
Workflow file for this run
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
name: E2E Test Creator | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
env: | |
SKIP_E2E_TAG: skip-e2e | |
E2E_CHECK_NAME: e2e tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
check-creator: | |
name: check-creator | |
runs-on: ubuntu-latest | |
steps: | |
- uses: LouisBrunner/checks-action@6b626ffbad7cc56fd58627f774b9067e6118af23 # v2 | |
name: Enqueue e2e | |
id: create | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
sha: ${{ github.event.pull_request.head.sha }} | |
name: ${{ env.E2E_CHECK_NAME }} | |
status: queued | |
- uses: LouisBrunner/checks-action@6b626ffbad7cc56fd58627f774b9067e6118af23 # v2 | |
name: Skip e2e | |
if: ${{ contains(github.event.pull_request.labels.*.name, env.SKIP_E2E_TAG )}} | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
sha: ${{ github.event.pull_request.head.sha }} | |
check_id: ${{ steps.create.outputs.check_id }} | |
conclusion: success | |
output: | | |
{"summary": "skipped by maintainer"} |