Skip to content

Commit c3713f6

Browse files
committed
fix workflow
1 parent f64bb40 commit c3713f6

2 files changed

Lines changed: 13 additions & 20 deletions

File tree

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
# .github/workflows/issue-assigned.yml
2-
name: "Mover Issue a En Progreso"
1+
# .github/workflows/issue-labeled.yml
2+
name: "Añadir Issue a Proyecto (por etiqueta)"
33

44
on:
55
issues:
6-
types: [assigned]
6+
types: [labeled]
77

88
jobs:
9-
move-issue:
9+
add-to-project:
10+
name: "Añadir issue al proyecto"
1011
runs-on: ubuntu-latest
11-
permissions:
12-
issues: read
1312
steps:
14-
- name: Mover issue a "En Progreso"
15-
uses: actions/add-to-project@v1.0.1
13+
- uses: actions/add-to-project@v1
1614
with:
1715
project-url: "https://github.com/orgs/open-source-uc/projects/24"
18-
github-token: ${{ secrets.GITHUB_TOKEN }}
19-
field-name: "Status"
20-
field-value: "In progress"
16+
github-token: ${{ secrets.PROJECT_AUTOMATION_TOKEN }}
17+
labeled: "in-progress"

.github/workflows/pr-opened.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
# .github/workflows/pr-opened.yml
2-
name: "Mover PR a In review"
2+
name: "Añadir PR a Proyecto"
33

44
on:
55
pull_request:
66
types: [opened]
77

88
jobs:
9-
move-pr:
9+
add-to-project:
10+
name: "Añadir PR al proyecto"
1011
runs-on: ubuntu-latest
11-
permissions:
12-
pull-requests: read
1312
steps:
14-
- name: Mover PR a "In review"
15-
uses: actions/add-to-project@v1.0.1
13+
- uses: actions/add-to-project@v1
1614
with:
1715
project-url: "https://github.com/orgs/open-source-uc/projects/24"
18-
github-token: ${{ secrets.GITHUB_TOKEN }}
19-
field-name: "Status"
20-
field-value: "In review"
16+
github-token: ${{ secrets.PROJECT_AUTOMATION_TOKEN }}

0 commit comments

Comments
 (0)