Skip to content

Commit e958bbc

Browse files
BigLepclaude
authored andcommitted
fix(ci): handle duplicate items in add-to-project workflow (#184)
* fix(ci): handle duplicate items in add-to-project workflow Add continue-on-error to prevent workflow failure when an issue/PR already exists in the project board. The actions/add-to-project action does not currently handle this case gracefully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix(ci): only run workflow when team/fs-wg label is added Add conditional to prevent workflow from running on every labeled event. Now it only runs when the specific 'team/fs-wg' label is added, avoiding duplicate runs when multiple labels are added at once. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent 6cc1f47 commit e958bbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/add-issues-and-prs-to-fs-project-board.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ jobs:
3030
add-to-project:
3131
name: Add all "team/fs-wg" issues and PRs to project
3232
runs-on: ubuntu-latest
33+
if: github.event.label.name == 'team/fs-wg'
3334
steps:
3435
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
36+
continue-on-error: true # Don't fail if item already exists in project. actions/add-to-project does not currently handle this case gracefully.
3537
with:
3638
project-url: https://github.com/orgs/FilOzone/projects/14
3739
github-token: ${{ secrets.FILOZZY_CI_ADD_TO_PROJECT }}

0 commit comments

Comments
 (0)