We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d1ef70 commit 6ebe5c6Copy full SHA for 6ebe5c6
1 file changed
.github/workflows/language-push.yaml
@@ -6,29 +6,8 @@ on:
6
- main
7
8
jobs:
9
- check-label:
10
- runs-on: ubuntu-latest
11
- steps:
12
- -
13
- name: Checkout repository
14
- uses: actions/checkout@v3
15
- with:
16
- fetch-depth: 2
17
- - name: Check if commit is from labeled PR
18
- id: check
19
- run: |
20
- prs=$(gh pr list --state merged --search "$(git log -1 --pretty=format:%s)" --json number,labels --jq '.[] | select(.labels[].name == "automated pr")')
21
- if [ -n "$prs" ]; then
22
- echo "skip=true" >> "$GITHUB_OUTPUT"
23
- else
24
- echo "skip=false" >> "$GITHUB_OUTPUT"
25
- fi
26
- env:
27
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
setup:
29
- needs: [check-label]
30
runs-on: ubuntu-latest
31
- if: needs.check-label.outputs.skip == 'false'
32
outputs:
33
matrix: ${{ steps.set-matrix.outputs.matrix }}
34
steps:
0 commit comments