Skip to content

Commit

Permalink
Merge pull request #2347 from IntersectMBO/2277-fix-failing-action
Browse files Browse the repository at this point in the history
[2277] fix: remove unneeded login step on workflow action
  • Loading branch information
Ryun1 authored Nov 11, 2024
2 parents 001092a + 892037f commit ccdc17e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
name: Add Issue to Projects
name: Add all issues created to projects

on:
issues:
types: [opened]

jobs:
add-to-projects:
add-to-govtool-all-project:
name: Add issue to GovTool all project
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/[email protected]
with:
project-url: https://github.com/users/IntersectMBO/projects/30
github-token: ${{ secrets.ADD_ISSUE_TO_PROJECT_PAT }}

- name: Install GitHub CLI
run: sudo apt-get install gh

- name: Authenticate GitHub CLI with default token
run: gh auth login --with-token <<< "$GITHUB_TOKEN"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Add issue to GovTool Project
run: gh project item-add IntersectMBO/30 --content-type Issue --content-id ${{ github.event.issue.node_id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Add issue to Community Backlog Project
run: gh project item-add IntersectMBO/34 --content-type Issue --content-id ${{ github.event.issue.node_id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
add-to-community-backlog-project:
name: Add issue to governance tools community backlog project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/users/IntersectMBO/projects/34
github-token: ${{ secrets.ADD_ISSUE_TO_PROJECT_PAT }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ changes.
### Fixed

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

### Changed

Expand Down

0 comments on commit ccdc17e

Please sign in to comment.