Add workflow to send artifacts back to minecraft-data (#51)
* add a send script * update * fix marker
This commit is contained in:
@@ -10,6 +10,9 @@ on:
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
env:
|
||||
MARKER: '🎈'
|
||||
|
||||
jobs:
|
||||
define-versions:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -92,8 +95,19 @@ jobs:
|
||||
merge-multiple: true
|
||||
|
||||
- name: Upload artifact
|
||||
id: uploadMerged
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: merged-data
|
||||
path: artifacts/*
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Sending artifacts to minecraft-data
|
||||
# Check if PR starts with marker
|
||||
if: startsWith(github.event.pull_request.title, env.MARKER)
|
||||
env:
|
||||
ARTIFACT_URL: ${{ steps.uploadMerged.outputs.artifact-url }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
run: node .github/commands/send.js
|
||||
|
||||
Reference in New Issue
Block a user