Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Cleanup catalog

on:
schedule:
- cron: 0 7 1 * *

jobs:
cleanup-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@v6

- uses: prefix-dev/setup-pixi@v0
with:
cache: true

- name: Pull latest changes
run: |
git pull --rebase origin ${{ github.ref }}

- name: cleanup-catalog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OFFSET: ${{ matrix.offset }}
run: pixi run cleanup-catalog

- 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@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types:
- completed
push:
branches: [main, dev]
branches: [main]

defaults:
run:
Expand Down
41 changes: 3 additions & 38 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
schedule:
- cron: 0 5 * * 1
push:
branches: [main, dev]
branches: [main]
Comment thread
coderabbitai[bot] marked this conversation as resolved.

jobs:
generate-catalog:
if: github.event_name == 'schedule' || github.actor != 'github-actions[bot]'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -38,43 +39,7 @@ jobs:
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@v6

- uses: prefix-dev/setup-pixi@v0
with:
cache: true

- name: Pull latest changes
run: |
git pull --rebase origin ${{ github.ref }}

- name: cleanup-catalog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OFFSET: ${{ matrix.offset }}
run: pixi run cleanup-catalog

- 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
uses: ad-m/github-push-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test

on:
pull_request:
branches: [main, dev]
branches: [main]

jobs:
generate-catalog:
Expand Down