Add workflow to send artifacts back to minecraft-data (#51)

* add a send script

* update

* fix marker
This commit is contained in:
extremeheat
2025-08-23 22:42:30 +02:00
committed by GitHub
parent ded05137e5
commit 32dfe451dc
4 changed files with 63 additions and 2 deletions
+14
View File
@@ -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