Skip to content

Commit

Permalink
Generate: Run CI only when certain paths changed and fix auth issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon committed May 9, 2024
1 parent 96af219 commit d512823
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: "Generate Static Remote"

on: [push, pull_request]
on:
push:
paths:
- "generate.py"
- ".github/workflows/generate.yml"
- "remote_repo_meta_files/**"
pull_request:
paths:
- "generate.py"
- ".github/workflows/generate.yml"
- "remote_repo_meta_files/**"

jobs:
test-remote:
Expand Down Expand Up @@ -40,6 +50,7 @@ jobs:
run: |
git config --global user.email "${{ secrets.BOT_GITHUB_EMAIL }}"
git config --global user.name "${{ secrets.BOT_GITHUB_NAME }}"
git config --global http.https://github.com/.extraheader "AUTHORIZATION: bearer ${{ secrets.BOT_GITHUB_TOKEN }}"
rm -rf remote/r/${{ env.REMOTE_NAME }}/
cp -r cache/generated/* remote/
cp -r remote_repo_meta_files/* remote/
Expand Down

0 comments on commit d512823

Please sign in to comment.