-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 1.02 KB
/
weekly_update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# .github/workflows/release.yml
name: Weekly Updates
on:
schedule:
- cron: '0 0 * * 2'
jobs:
update:
name: Pull latest from stanford profile
runs-on: ubuntu-latest
container:
image: pookmish/drupal8ci:latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Back to Dev
run: |
git config --global user.email "[email protected]"
git config --global user.name "CircleCI"
git config pull.ff true
git config pull.rebase false
git pull https://github.com/SU-SWS/stanford_profile.git 10.x -X ours --no-edit
if [[ $(git diff origin/${CIRCLE_BRANCH} --name-only) ]]; then
DATE=`date +%Y-%m-%d`
git checkout -b ${DATE}-10.x
git push ${DATE}-10.x
sleep 5
gh pr create --title=${DATE} --base=10.x --body="Updates from stanford_profile" --assignee=pookmish,imonroe
fi