Skip to content

Commit

Permalink
Update projectboard.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynne committed Jun 20, 2023
1 parent 6a3440c commit 1db9044
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/projectboard.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,12 @@
[2023-06-16 11:14:58] gwynne@kontonnoumi:~/Desktop/Vapor/mysql-nio$ git -C ../swift-nio-test/ status
name: issue-to-project-board-workflow
on:
# Trigger when an issue gets labeled or deleted
issues:
types: [reopened, closed, labeled, unlabeled, assigned, unassigned]

jobs:
setup_matrix_input:
runs-on: ubuntu-latest

steps:
- id: set-matrix
run: |
output=$(curl ${{ github.event.issue.url }}/labels | jq '.[] | .name') || output=""
echo '======================'
echo 'Process incoming data'
echo '======================'
json=$(echo $output | sed 's/"\s"/","/g')
echo $json
echo "::set-output name=matrix::$(echo $json)"
outputs:
issueTags: ${{ steps.set-matrix.outputs.matrix }}

Manage_project_issues:
needs: setup_matrix_input
uses: vapor/ci/.github/workflows/issues-to-project-board.yml@main
with:
labelsJson: ${{ needs.setup_matrix_input.outputs.issueTags }}
secrets:
PROJECT_BOARD_AUTOMATION_PAT: "${{ secrets.PROJECT_BOARD_AUTOMATION_PAT }}"
update_project_boards:
name: Update project boards
uses: vapor/ci/.github/workflows/update-project-boards-for-issue.yml@reusable-workflows
secrets: inherit

0 comments on commit 1db9044

Please sign in to comment.