Skip to content

Commit 58ec268

Browse files
authored
Update add-to-project.yml
1 parent 83e29a8 commit 58ec268

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/add-to-project.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,19 @@ jobs:
2323
with:
2424
project-url: https://github.com/orgs/cantinilab/projects/2
2525
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
26+
# 2) (ISSUES) make/update label 'repo:<repo>'
27+
- name: Ensure repo label exists (issues)
28+
if: github.event_name == 'issues'
29+
uses: peter-evans/create-or-update-label@v4
30+
with:
31+
name: repo:${{ github.event.repository.name }}
32+
color: 666666
33+
description: Issue origin repository
34+
35+
# 3) (ISSUES) apply the label 'repo:<repo>' to the issue
36+
- name: Add repo label to issue
37+
if: github.event_name == 'issues'
38+
uses: actions-ecosystem/action-add-labels@v1
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
labels: repo:${{ github.event.repository.name }}

0 commit comments

Comments
 (0)