Skip to content

Weekly Updates

Weekly Updates #112

Workflow file for this run

# .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