Browse Source

Update GitHub Actions.

See #1791
pull/1868/head
Mark Paluch 1 year ago
parent
commit
07e13aa3a9
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 27
      .github/workflows/project.yml

27
.github/workflows/project.yml

@ -13,35 +13,28 @@ on:
jobs: jobs:
Inbox: Inbox:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request == null if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request == null && !contains(join(github.event.issue.labels.*.name, ', '), 'dependency-upgrade') && !contains(github.event.issue.title, 'Release ')
steps: steps:
- name: Create or Update Issue Card - name: Create or Update Issue Card
uses: peter-evans/create-or-update-project-card@v1.1.2 uses: actions/add-to-project@v1.0.2
with: with:
project-name: 'Spring Data' project-url: https://github.com/orgs/spring-projects/projects/25
column-name: 'Inbox' github-token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
project-location: 'spring-projects'
token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
Pull-Request: Pull-Request:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request != null if: github.repository_owner == 'spring-projects' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.event.pull_request != null
steps: steps:
- name: Create or Update Pull Request Card - name: Create or Update Pull Request Card
uses: peter-evans/create-or-update-project-card@v1.1.2 uses: actions/add-to-project@v1.0.2
with: with:
project-name: 'Spring Data' project-url: https://github.com/orgs/spring-projects/projects/25
column-name: 'Review pending' github-token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
project-location: 'spring-projects'
issue-number: ${{ github.event.pull_request.number }}
token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
Feedback-Provided: Feedback-Provided:
runs-on: ubuntu-latest runs-on: ubuntu-latest
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') 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: steps:
- name: Update Project Card - name: Update Project Card
uses: peter-evans/create-or-update-project-card@v1.1.2 uses: actions/add-to-project@v1.0.2
with: with:
project-name: 'Spring Data' project-url: https://github.com/orgs/spring-projects/projects/25
column-name: 'Feedback provided' github-token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}
project-location: 'spring-projects'
token: ${{ secrets.GH_ISSUES_TOKEN_SPRING_DATA }}

Loading…
Cancel
Save