Update Reports and Artifact Badge Data #102
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: Update Reports and Artifact Badge Data | |
on: | |
schedule: | |
- cron: "50 20 * * *" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
update-project-reports: | |
if: github.repository == 'jvm-repo-rebuild/reproducible-central' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update Project Reports | |
run: ./bin/update-reproducibility-summary.sh update | |
- name: Commit Push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --local user.email "reproducible-central@github.io" | |
git config --local user.name "Reproducible Central CI" | |
git add -A | |
git commit -m "nightly update of content" | |
git push | |
update-artifact-badge-data: | |
needs: update-project-reports | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JBang | |
uses: jbangdev/setup-jbang@main | |
- name: Checkout gh-pages | |
uses: actions/checkout@v4 | |
with: | |
ref: 'gh-pages' | |
path: 'gh-pages' | |
- name: Update Badge Data | |
run: | | |
wget https://raw.githubusercontent.com/hboutemy/mcmm-logs/refs/heads/master/outputTimestamp.txt | |
./bin/update_artifact_badge_data.java | |
- name: Commit Push gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd gh-pages | |
git config --local user.email "reproducible-central@github.io" | |
git config --local user.name "Reproducible Central CI" | |
git add -A | |
git commit -m "nightly update of content" | |
git push | |