Skip to content

Commit

Permalink
config git
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jul 24, 2023
1 parent 19f81cd commit 0cdbe5a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ jobs:
with:
node-version: 19.7

- name: Setup Git
run: |
git config --local user.name cfl-bot
git config --local user.email [email protected]
git remote set-url origin https://cfl-bot:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/ocadotechnology/codeforlife-package-javascript.git
# TODO: cache node packages
- name: Install Node Packages
run: npm install --only=dev
Expand All @@ -67,7 +73,6 @@ jobs:
git add lib/*
if ! git diff --staged --quiet; then
git commit -m "push build files [skip ci]"
git remote set-url --push origin https://cfl-bot:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/ocadotechnology/codeforlife-package-javascript.git
git push
fi
Expand Down

0 comments on commit 0cdbe5a

Please sign in to comment.