Skip to content

GitHub Issue Updater #816

GitHub Issue Updater

GitHub Issue Updater #816

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 }}"