Skip to content

Create milestone-on-tag.yml #1

Create milestone-on-tag.yml

Create milestone-on-tag.yml #1

on:
pull_request:
types: [labeled, unlabeled]
jobs:
add-milestone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check if tag is a valid version
uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: ${{ github.event.label.name }}
regex: 'v[0-9]+?\.[0-9]+?\.[0-9]+?'
- name: Assign a milestone to pull requests
uses: zoispag/[email protected]
if: ${{ steps.regex-match.outputs.match != '' }}
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
milestone: "${{ steps.regex-match.outputs.match }}"