Files
galaxy/.github/workflows/maintenance_bot.yaml
T
Nicola Soranzo c01d2fe6b4 Fix exclamation mark breaking GH workflow
Fix the following error:

```
The workflow is not valid. .github/workflows/maintenance_bot.yaml: (Line: 14, Col: 13, Idx: 253) - (Line: 14, Col: 14, Idx: 254): While parsing a tag, did not find expected tag URI.
```
2020-12-08 18:04:54 +00:00

35 lines
1.1 KiB
YAML

name: "Maintenance Bot"
on:
pull_request_target:
types: [opened, reopened]
jobs:
labeler:
name: Assign labels and milestone
runs-on: ubuntu-latest
env:
MILESTONE_NUMBER: 18
steps:
- name: Add area labels
if: ${{ ! contains(join(github.event.pull_request.labels.*.name, ', '), 'area/') }}
uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Assign milestone
if: |
! github.event.pull_request.milestone &&
! contains(github.event.pull_request.labels.*.name, 'merge') &&
! contains(github.event.pull_request.labels.*.name, 'status/WIP') &&
! contains(github.event.pull_request.title, 'WIP') &&
! github.event.pull_request.draft
uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
milestone: ${{ env.MILESTONE_NUMBER }},
});