Skip to content

Commit

Permalink
Merge pull request #16 from CausalAIBook/bypass-main-protection
Browse files Browse the repository at this point in the history
Update transform-notebooks.yml
  • Loading branch information
vsyrgkanis authored Aug 3, 2024
2 parents db44907 + a75c548 commit 28ac76f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/transform-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.BOT_ACCESS_TOKEN }}

- name: Set up Python
uses: actions/setup-python@v2
Expand Down Expand Up @@ -98,8 +99,8 @@ jobs:
- name: Commit and push stripped .ipynb files
if: steps.verify_diff.outputs.changed == 'true'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global user.name 'metricsml-bot'
git config --global user.email 'ga.metricsml.bot@gmail.com'
git pull
dirs=(PM1 PM2 PM3 PM4 PM5 CM1 CM2 CM3 AC1 AC2 T)
for dir in "${dirs[@]}"; do
Expand All @@ -114,4 +115,4 @@ jobs:
git commit -m 'Strip outputs from .ipynb files [skip ci]'
git push --force-with-lease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}

0 comments on commit 28ac76f

Please sign in to comment.