Skip to content

Commit

Permalink
senzing-factory/build-resources#140 reuse add to project and update p…
Browse files Browse the repository at this point in the history
…ermissions (#38)

* senzing-factory/build-resources#140 reuse add to project and update permissions

* senzing-factory/build-resources#140 reuse add to project and update permissions
  • Loading branch information
kernelsam authored Jun 26, 2024
1 parent 9d6caa8 commit 13ddbbe
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 29 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/add-to-project-g2-python-dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
name: add to project community dependabot
name: add to project g2 python dependabot

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_G2_PYTHON }}"
secrets:
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v1
with:
project: ${{ vars.SENZING_PROJECT_G2_PYTHON }}
20 changes: 8 additions & 12 deletions .github/workflows/add-to-project-g2-python.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: add to project community
name: add to project g2 python

on:
issues:
Expand All @@ -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_G2_PYTHON }}"
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@v1
with:
classic: false
project-number: ${{ vars.SENZING_PROJECT_G2_PYTHON }}
org: ${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}
4 changes: 3 additions & 1 deletion .github/workflows/move-pr-to-done-dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 13ddbbe

Please sign in to comment.