Skip to content

Commit

Permalink
Update at 2024-04-05 17:15:57
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoNishi committed Apr 5, 2024
1 parent 465f0b1 commit bca3a56
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Push to Master Repo

on:
push:
branches:
- master
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
ref: 'master'
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- run: |
git remote add official [email protected]:KentoNishi/JTR-CVPR-2024.git
git config --global user.email ${{ secrets.EMAIL }}
git config --global user.name ${{ secrets.USERNAME }}
git checkout master
# squash commits
git reset --soft HEAD~1
git add .
# commit with the date and time
git commit -m "Update at $(date +'%Y-%m-%d %H:%M:%S')"
git push -u official master -f

0 comments on commit bca3a56

Please sign in to comment.