From 8315026919280d83831d56bc6715e0f9974e52e6 Mon Sep 17 00:00:00 2001 From: Pallav Dhobley <104137665+pallavx@users.noreply.github.com> Date: Wed, 18 Jan 2023 15:42:12 +0530 Subject: [PATCH] Add add-to-project step & rename workflow assign-issue workflow file We are updating the workflows to auto-add new issues & PR to actions/cache project board. --- .../{assign-issue.yml => issue-opened-workflow.yml} | 6 ++++++ 1 file changed, 6 insertions(+) rename .github/workflows/{assign-issue.yml => issue-opened-workflow.yml} (78%) diff --git a/.github/workflows/assign-issue.yml b/.github/workflows/issue-opened-workflow.yml similarity index 78% rename from .github/workflows/assign-issue.yml rename to .github/workflows/issue-opened-workflow.yml index 185eb1d..b127d98 100644 --- a/.github/workflows/assign-issue.yml +++ b/.github/workflows/issue-opened-workflow.yml @@ -14,3 +14,9 @@ jobs: - name: add_assignees run: | curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.issue.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}' + + - uses: actions/add-to-project@v0.4.0 + name: Add to Project Board + with: + project-url: https://github.com/orgs/actions/projects/12 + github-token: ${{ secrets.CACHE_BOARD_TOKEN }}