[USERSNAP] The truncation of the action ID is really annoying, especially when it's not necessary to fit the content in the window width. For my workflow, I need to grab the transaction ID and action index separately, so copying the entire thing to the ... #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add Issue to Projects | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
add-to-projects: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- 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 }} |