Skip to content

Commit

Permalink
Merge pull request #867 from acm-ucr/fix_cron
Browse files Browse the repository at this point in the history
fix cronjob
  • Loading branch information
khandrew1 authored Nov 10, 2023
2 parents 9821f2b + f7f48ed commit a1a9512
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/sync-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout current repo
- name: Checkout Current Repo
uses: actions/checkout@v3
with:
path: ${{ github.repository }}

- name: checkout new branch
- name: Checkout New Branch
working-directory: ${{ github.repository }}
run: |
git checkout -b sync-template
current_date = $(date '+%m/%d/%Y')
git checkout -b sync-template-$current_date
- name: fetch and merge template changes
- name: Fetch and Merge
working-directory: ${{ github.repository }}
run: |
git remote add template https://github.com/acm-ucr/hackathon-website
git fetch --all
git merge template/dev sync-template
git merge template/dev sync-template --allow-unrelated-histories
- name: create new PR
- name: Create New Pull Request
working-directory: ${{ github.repository }}
run: |
gh pr create --title "Sync Template Changes" --body "Syncing template changes from $(date +'%m-%d-%Y')"

0 comments on commit a1a9512

Please sign in to comment.