From 3acc3562794bf5d526531fde0bad00b2bf4a113d Mon Sep 17 00:00:00 2001 From: Aabishkar KC Date: Tue, 19 Dec 2023 10:55:39 -0500 Subject: [PATCH] Update move issues workflow (#3019) * Update move issues workflow * Update move issues workflow --- .github/workflows/move_issues.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/move_issues.yml b/.github/workflows/move_issues.yml index a52d19fd7..dcff34474 100644 --- a/.github/workflows/move_issues.yml +++ b/.github/workflows/move_issues.yml @@ -23,8 +23,6 @@ on: - assigned env: - GH_TOKEN: ${{ secrets.DYNAMO_ISSUES_TOKEN }} - gh_organization: ${{ github.repository_owner }} project_id: 7 project_name: DynamoRevit Issues @@ -34,22 +32,24 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.action == 'labeled' }} steps: - - uses: actions/checkout@v4 - name: Transfer issue to Dynamo Repository if: ${{ github.event.label.name == 'Dynamo' }} + env: + GH_TOKEN: ${{ secrets.DYNAMO_ISSUES_TOKEN }} run: | - gh issue edit ${{ github.event.issue.number }} --remove-project "${{ env.project_name }}" + gh issue edit ${{ github.event.issue.number }} --remove-project "${{ env.project_name }}" --repo ${{ github.repository }} gh issue transfer ${{ github.event.issue.number }} DynamoDS/Dynamo transfer_issue_labeled_as_wishlist: name: Transfer issue labeled as Wishlist runs-on: ubuntu-latest if: ${{ github.event.action == 'labeled' }} steps: - - uses: actions/checkout@v4 - name: Transfer issue to DynamoWishlist Repository if: ${{ github.event.label.name == 'Wishlist' }} + env: + GH_TOKEN: ${{ secrets.DYNAMO_ISSUES_TOKEN }} run: | - gh issue edit ${{ github.event.issue.number }} --remove-project "${{ env.project_name }}" + gh issue edit ${{ github.event.issue.number }} --remove-project "${{ env.project_name }}" --repo ${{ github.repository }} gh issue transfer ${{ github.event.issue.number }} DynamoDS/DynamoWishlist move_issue_labeled_as_tracked: name: Move issue labeled as tracked @@ -60,8 +60,8 @@ jobs: if: ${{ github.event.label.name == 'tracked' }} uses: leonsteinhaeuser/project-beta-automations@v2.2.1 with: - gh_token: ${{ env.GH_TOKEN }} - organization: ${{ env.gh_organization }} + gh_token: ${{ secrets.DYNAMO_ISSUES_TOKEN }} + organization: ${{ github.repository_owner }} project_id: ${{ env.project_id }} resource_node_id: ${{ github.event.issue.node_id }} status_value: Todo @@ -73,8 +73,8 @@ jobs: - name: Move issue to In Progress uses: leonsteinhaeuser/project-beta-automations@v2.2.1 with: - gh_token: ${{ env.GH_TOKEN }} - organization: ${{ env.gh_organization }} + gh_token: ${{ secrets.DYNAMO_ISSUES_TOKEN }} + organization: ${{ github.repository_owner }} project_id: ${{ env.project_id }} resource_node_id: ${{ github.event.issue.node_id }} status_value: In Progress