Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2277] fix: remove unneeded login step on workflow action #2347

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/add-to-project@v1.0.2
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/add-to-project@v1.0.2
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
Loading