-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
senzing-factory/build-resources#140 reuse add to project and update p…
…ermissions
- Loading branch information
Showing
2 changed files
with
14 additions
and
28 deletions.
There are no files selected for viewing
22 changes: 6 additions & 16 deletions
22
.github/workflows/add-to-project-g2-python-dependabot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters