Skip to content

Commit ccdc17e

Browse files
authored
Merge pull request #2347 from IntersectMBO/2277-fix-failing-action
[2277] fix: remove unneeded login step on workflow action
2 parents 001092a + 892037f commit ccdc17e

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed
Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
1-
name: Add Issue to Projects
1+
name: Add all issues created to projects
22

33
on:
44
issues:
55
types: [opened]
66

77
jobs:
8-
add-to-projects:
8+
add-to-govtool-all-project:
9+
name: Add issue to GovTool all project
910
runs-on: ubuntu-latest
1011
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@v3
12+
- uses: actions/[email protected]
13+
with:
14+
project-url: https://github.com/users/IntersectMBO/projects/30
15+
github-token: ${{ secrets.ADD_ISSUE_TO_PROJECT_PAT }}
1316

14-
- name: Install GitHub CLI
15-
run: sudo apt-get install gh
16-
17-
- name: Authenticate GitHub CLI with default token
18-
run: gh auth login --with-token <<< "$GITHUB_TOKEN"
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
22-
- name: Add issue to GovTool Project
23-
run: gh project item-add IntersectMBO/30 --content-type Issue --content-id ${{ github.event.issue.node_id }}
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
27-
- name: Add issue to Community Backlog Project
28-
run: gh project item-add IntersectMBO/34 --content-type Issue --content-id ${{ github.event.issue.node_id }}
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
add-to-community-backlog-project:
18+
name: Add issue to governance tools community backlog project
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/[email protected]
22+
with:
23+
project-url: https://github.com/users/IntersectMBO/projects/34
24+
github-token: ${{ secrets.ADD_ISSUE_TO_PROJECT_PAT }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ changes.
1717
### Fixed
1818

1919
- Fix submitting treasury governance action [Issue 1845](https://github.com/IntersectMBO/govtool/issues/1845)
20+
- Fix failing github action workflow [Issue 2277](https://github.com/IntersectMBO/govtool/issues/2277)
2021

2122
### Changed
2223

0 commit comments

Comments
 (0)