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 28ac76f commit 2aa9b8f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/transform-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:

jobs:
strip-transform-notebooks:
if: github.event.commits[0].author.name != 'GitHubActions'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -99,8 +100,8 @@ jobs:
- name: Commit and push stripped .ipynb files
if: steps.verify_diff.outputs.changed == 'true'
run: |
git config --global user.name 'metricsml-bot'
git config --global user.email '[email protected]'
git config --global user.name 'GitHubActions'
git config --global user.email '<>'
git pull
dirs=(PM1 PM2 PM3 PM4 PM5 CM1 CM2 CM3 AC1 AC2 T)
for dir in "${dirs[@]}"; do
Expand All @@ -113,6 +114,4 @@ jobs:
fi
done
git commit -m 'Strip outputs from .ipynb files [skip ci]'
git push --force-with-lease
env:
GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
git push

0 comments on commit 2aa9b8f

Please sign in to comment.