Update GitHub actions.

Consistently use pull_request_target for pull requests to be added to the board to include encrypted tokens. Remove Done step as that's handled by the board automation. Switch from spring-issue-master to spring-projects-issues.

Closes #1410.
This commit is contained in:
Mark Paluch
2021-03-22 14:30:13 +01:00
parent 4cffd127ff
commit d4ca0eafa7

View File

@@ -4,10 +4,10 @@ name: Spring Data GitHub Issues
on:
issues:
types: [opened, edited, reopened, closed]
types: [opened, edited, reopened]
issue_comment:
types: [created]
pull_request:
pull_request_target:
types: [opened, edited, reopened]
jobs:
@@ -22,17 +22,6 @@ jobs:
column-name: 'Inbox'
project-location: 'spring-projects'
token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
Done:
runs-on: ubuntu-latest
if: (github.event.action == 'closed') && github.event.pull_request == null
steps:
- name: Update Issue Card
uses: peter-evans/create-or-update-project-card@v1.1.2
with:
project-name: 'Spring Data'
column-name: 'Done'
project-location: 'spring-projects'
token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
Pull-Request:
runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request != null
@@ -47,7 +36,7 @@ jobs:
token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
Feedback-Provided:
runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects' && github.event_name == 'issue_comment' && github.event.action == 'created' && !github.actor == 'spring-issuemaster' && github.event.pull_request == null && github.event.issue.state == 'open' && contains(join(github.event.issue.labels.*.name, ', '), 'waiting-for-feedback')
if: github.repository_owner == 'spring-projects' && github.event_name == 'issue_comment' && github.event.action == 'created' && github.actor != 'spring-projects-issues' && github.event.pull_request == null && github.event.issue.state == 'open' && contains(toJSON(github.event.issue.labels), 'waiting-for-feedback')
steps:
- name: Update Project Card
uses: peter-evans/create-or-update-project-card@v1.1.2