Skip to content

Commit 6ebe5c6

Browse files
committed
ci: cancel last commits
1 parent 2d1ef70 commit 6ebe5c6

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

.github/workflows/language-push.yaml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,8 @@ on:
66
- main
77

88
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 }}
289
setup:
29-
needs: [check-label]
3010
runs-on: ubuntu-latest
31-
if: needs.check-label.outputs.skip == 'false'
3211
outputs:
3312
matrix: ${{ steps.set-matrix.outputs.matrix }}
3413
steps:

0 commit comments

Comments
 (0)