Skip to content

Support all 1.20 builds (#24) #12

Support all 1.20 builds (#24)

Support all 1.20 builds (#24) #12

Workflow file for this run

name: 'tag'
on:
push:
branches:
- master
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: ${{ github.event.head_commit.message }}
regex: '^Release ([0-9]+\.[0-9]+\.[0-9]+)'
- uses: actions-ecosystem/action-push-tag@v1
if: ${{ steps.regex-match.outputs.match != '' }}
with:
tag: ${{ steps.regex-match.outputs.group1 }}
- uses: peter-evans/repository-dispatch@v1
if: ${{ steps.regex-match.outputs.match != '' }}
with:
token: ${{ secrets.PAT_PASSWORD }}
repository: PrismarineJS/node-minecraft-assets
event-type: data-release
client-payload: '{"tag": "${{ steps.regex-match.outputs.group1 }}"}'