diff --git a/.github/workflows/add-to-project-community-dependabot.yaml b/.github/workflows/add-to-project-community-dependabot.yaml index ca13aa9..f5b3eba 100644 --- a/.github/workflows/add-to-project-community-dependabot.yaml +++ b/.github/workflows/add-to-project-community-dependabot.yaml @@ -4,23 +4,13 @@ on: pull_request: branches: [main] -env: - CREATOR: ${{ github.event.pull_request.user.login }} - GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} - permissions: repository-projects: write jobs: add-to-project-dependabot: - name: add issue to Senzing Community project - runs-on: ubuntu-latest - - steps: - - name: assign issue to project - env: - BOOL: ${{ contains( env.CREATOR, 'dependabot' ) }} - if: ${{ env.BOOL == 'true' }} - uses: senzing-factory/github-action-add-issue-to-project@v1 - with: - project: "https://github.com/orgs/Senzing/projects/${{ vars.SENZING_PROJECT_COMMUNITY }}" + secrets: + SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v2 + with: + project: ${{ vars.SENZING_PROJECT_COMMUNITY }} diff --git a/.github/workflows/add-to-project-community.yaml b/.github/workflows/add-to-project-community.yaml index 25cddf3..bcad8c9 100644 --- a/.github/workflows/add-to-project-community.yaml +++ b/.github/workflows/add-to-project-community.yaml @@ -11,14 +11,10 @@ permissions: jobs: add-to-project: - name: add issue to project - runs-on: ubuntu-latest - - steps: - - name: assign issue to project - env: - GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} - uses: senzing-factory/github-action-add-issue-to-project@v1 - with: - project: "https://github.com/orgs/Senzing/projects/${{ vars.SENZING_PROJECT_COMMUNITY }}" - column_name: "Backlog" + secrets: + SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/add-to-project.yaml@v2 + with: + classic: false + project-number: ${{ vars.SENZING_PROJECT_COMMUNITY }} + org: ${{ vars.SENZING_GITHUB_ACCOUNT_NAME }} diff --git a/.github/workflows/move-pr-to-done-dependabot.yaml b/.github/workflows/move-pr-to-done-dependabot.yaml index 68bcb82..40ea2f5 100644 --- a/.github/workflows/move-pr-to-done-dependabot.yaml +++ b/.github/workflows/move-pr-to-done-dependabot.yaml @@ -12,4 +12,6 @@ jobs: move-pr-to-done-dependabot: secrets: SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} - uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done.yaml@v2 + uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done-dependabot.yaml@v2 + with: + project: ${{ vars.SENZING_PROJECT_COMMUNITY }}