GitHub Issue Updater #818
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Issue Updater | |
on: | |
workflow_run: | |
workflows: ["Nightly CI", "Weekly CI", "Repo Sync"] | |
types: | |
- completed | |
branches: | |
- default | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: graalvm/mandrel | |
fetch-depth: 1 | |
ref: ${{ github.event.workflow_run.head_branch }} | |
path: workflow-mandrel | |
- name: Get Triggering Workflow Run ID | |
shell: bash | |
run: | | |
echo "Triggering Workflow Run ID: ${{ github.event.workflow_run.id }}" | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Setup jbang and report results | |
env: | |
BOT_TOKEN: ${{ secrets.MANDREL_BOT_TOKEN }} | |
run: | | |
echo "Installing JBang" | |
wget https://github.com/jbangdev/jbang/releases/download/v0.121.0/jbang.zip | |
unzip jbang.zip | |
echo "Attempting to report results" | |
./jbang/bin/jbang ./workflow-mandrel/.github/quarkus-ecosystem-issue.java \ | |
token="${BOT_TOKEN}" \ | |
thisRepo="${{ github.event.workflow_run.repository.full_name }}" \ | |
runId="${{ github.event.workflow_run.id }}" | |