spets 0.1.29 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,26 +13,14 @@ permissions:
|
|
|
13
13
|
contents: write
|
|
14
14
|
issues: write
|
|
15
15
|
pull-requests: write
|
|
16
|
-
workflows: write
|
|
17
16
|
|
|
18
17
|
jobs:
|
|
19
18
|
# Start workflow when a spets Issue is created
|
|
20
19
|
start-workflow:
|
|
21
|
-
if: github.event.action == 'opened'
|
|
20
|
+
if: github.event.action == 'opened' && contains(github.event.issue.labels.*.name, 'spets')
|
|
22
21
|
runs-on: ubuntu-latest
|
|
23
22
|
|
|
24
23
|
steps:
|
|
25
|
-
- name: Check for spets label
|
|
26
|
-
env:
|
|
27
|
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
28
|
-
run: |
|
|
29
|
-
sleep 2 # Wait for label to be applied
|
|
30
|
-
LABELS=$(gh api repos/${{ github.repository }}/issues/${{ github.event.issue.number }} --jq '.labels[].name')
|
|
31
|
-
if ! echo "$LABELS" | grep -q "^spets$"; then
|
|
32
|
-
echo "No spets label found, skipping"
|
|
33
|
-
exit 1
|
|
34
|
-
fi
|
|
35
|
-
|
|
36
24
|
- name: Checkout
|
|
37
25
|
uses: actions/checkout@v4
|
|
38
26
|
with:
|