forked from oracle/graal
-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (38 loc) · 1.28 KB
/
github-issue-updater.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 }}"