mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 04:27:57 +00:00
[ci] Don't run prdoc and lables GHA on master (#3257)
PR adds condition to ignore master branch for prdoc and labels GHA.
This option doesn't work because all PRs are for master thus the actions
won't start:
```yml
on:
pull_request:
branches-ignore:
- master
```
This option doesn't work because actions don't see the PR number and
[break](https://github.com/paritytech/polkadot-sdk/actions/runs/7827272667/job/21354764953):
```yml
on:
push:
branches-ignore:
- master
```
cc https://github.com/paritytech/ci_cd/issues/940
cc https://github.com/paritytech/polkadot-sdk/issues/3240
This commit is contained in:
committed by
GitHub
parent
dfc8e4696c
commit
c3489aaf2f
@@ -9,14 +9,6 @@ jobs:
|
||||
check-labels:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Skip merge queue
|
||||
if: ${{ contains(github.ref, 'gh-readonly-queue') }}
|
||||
run: exit 0
|
||||
- name: Pull image
|
||||
env:
|
||||
IMAGE: paritytech/ruled_labels:0.4.0
|
||||
run: docker pull $IMAGE
|
||||
|
||||
- name: Check labels
|
||||
env:
|
||||
IMAGE: paritytech/ruled_labels:0.4.0
|
||||
@@ -28,6 +20,16 @@ jobs:
|
||||
RULES_PATH: labels/ruled_labels
|
||||
CHECK_SPECS: "specs_polkadot-sdk.yaml"
|
||||
run: |
|
||||
if [ ${{ github.ref }} == "refs/heads/master" ]; then
|
||||
echo "Skipping master"
|
||||
exit 0
|
||||
fi
|
||||
if [ $(echo ${{ github.ref }} | grep -c "gh-readonly-queue") -eq 1 ]; then
|
||||
echo "Skipping merge queue"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
docker pull $IMAGE
|
||||
echo "REPO: ${REPO}"
|
||||
echo "GITHUB_PR: ${GITHUB_PR}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user