Skip to content

feat: various changes to make building of catalog working again (#30) #1515

feat: various changes to make building of catalog working again (#30)

feat: various changes to make building of catalog working again (#30) #1515

Workflow file for this run

name: Generate catalog
on:
schedule:
- cron: 0 5 * * 1
push:
branches:
- main
- dev
jobs:
generate-catalog:
runs-on: ubuntu-latest
strategy:
matrix:
offset: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90]
max-parallel: 1
steps:
- uses: actions/checkout@v4
- name: deployment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
- name: Pull latest changes
run: |
git pull --rebase origin ${{ github.ref }}
- name: generate-catalog
shell: bash -l {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OFFSET: ${{ matrix.offset }}
LATEST_COMMIT: 7
run: |
python scripts/generate-catalog.py
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Add changes" -a || echo "No changes to commit"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
cleanup-catalog:
runs-on: ubuntu-latest
needs: generate-catalog
strategy:
matrix:
offset: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90]
max-parallel: 1
steps:
- uses: actions/checkout@v4
- name: deployment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
- name: Pull latest changes
run: |
git pull --rebase origin ${{ github.ref }}
- name: cleanup-catalog
shell: bash -l {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OFFSET: ${{ matrix.offset }}
run: |
python scripts/cleanup-catalog.py
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Add changes" -a || echo "No changes to commit"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}