Quarkus Ecosystem CI Trigger #1285
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: "Quarkus Ecosystem CI Trigger" | |
# Adding the dispatch event to allow restarting the build on demand | |
on: | |
schedule: | |
- cron: '0 5 * * 1-5' | |
repository_dispatch: | |
jobs: | |
invoke-ci: | |
runs-on: ubuntu-latest | |
name: "Invoke CI" | |
steps: | |
- name: Install yq | |
uses: dcarbone/[email protected] | |
- name: Checkout Ecosystem | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ env.GITHUB_REPOSITORY }} | |
path: ecosystem-ci | |
token: ${{ secrets.ECOSYSTEM_CI_TOKEN }} | |
ref: main | |
- name: Launch CI for each member | |
working-directory: ecosystem-ci | |
run: | | |
#get the sha or the latest main | |
QUARKUS_SHA=$(git ls-remote https://github.com/quarkusio/quarkus main | awk '{print $1;}') | |
for member in */ ; do | |
./run-for-member "${member}" "${QUARKUS_SHA}" "${ECOSYSTEM_CI_TOKEN}" | |
done | |
env: | |
ECOSYSTEM_CI_TOKEN: ${{ secrets.ECOSYSTEM_CI_TOKEN }} |