Skip to content

Commit

Permalink
Update transform-notebooks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vsyrgkanis authored Aug 3, 2024
1 parent db44907 commit c95fe2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/transform-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- gen-Rmd
- bypass-protection

concurrency:
group: strip-transform-notebooks-${{ github.ref }}
Expand All @@ -19,6 +20,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 +100,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 +116,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 c95fe2e

Please sign in to comment.