Skip to content

Commit 5334091

Browse files
let's not bother with that .github repo for now haha
1 parent 59a525a commit 5334091

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/target.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on: issue_comment
66
jobs:
77
check-permission:
88
runs-on: ubuntu-latest
9+
if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body,'!target') }}
910
name: Check permission
1011
steps:
1112
# Check for write permission
@@ -28,5 +29,17 @@ jobs:
2829

2930
run-command:
3031
name: Run label check
31-
needs: [check-permission]
32-
uses: HeatherComputer/.github/.github/workflows/target-label.yml@master
32+
needs: [check-permission]runs-on: ubuntu-latest
33+
34+
steps:
35+
36+
- name: Get Version
37+
id: version
38+
run: |
39+
X=`echo {{ github.event.comment.body }} | grep -o '!target.*' | awk '{print $2}'`; echo "Target: $X" >> "$GITHUB_OUTPUT"
40+
echo "Target : $X"
41+
42+
- name : "Create label if it doesn't exist"
43+
id: create-label
44+
run: |
45+
gh label list

0 commit comments

Comments
 (0)