Skip to content

Sync working groups #2950

Sync working groups

Sync working groups #2950

name: Sync working groups
env:
JVM_VERSION: '21'
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
sync:
if: github.repository == 'quarkusio/quarkusio.github.io'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Install JDK ${{ env.JVM_VERSION }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ env.JVM_VERSION }}
- name: Build working groups YAML file
uses: jbangdev/[email protected]
with:
script: working-groups/main.java
jbangargs: --verbose -Dworking-groups.output=_data/wg.yaml
env:
JBANG_REPO: /root/.jbang/repository
GITHUB_TOKEN: ${{ secrets.SYNC_WORKING_GROUP_TOKEN }}
- name: Configure Git author
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Commit changes
shell: bash
run: |
git add _data/wg.yaml
if [ -n "$(git status --porcelain)" ]; then
git commit -am "Sync working groups"
fi
git pull origin main --rebase
git push origin main