Skip to content

Commit

Permalink
Automatically "merge" master in pkg-update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Dec 27, 2019
1 parent 42f8125 commit 414e903
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/pkg-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: pkg-update
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- actions/trigger/pkg-update

jobs:
build:
Expand All @@ -17,7 +20,20 @@ jobs:
with:
version: ${{ matrix.julia-version }}

- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: '"Merge" master to create-pull-request/pkg-update'
run: |
git fetch --unshallow origin \
refs/heads/master:refs/remotes/origin/master \
refs/heads/create-pull-request/pkg-update:refs/remotes/origin/create-pull-request/pkg-update \
|| exit 0
git config --global user.email "tkf@users.noreply.github.com"
git config --global user.name "tkf"
git checkout -B master origin/master
git merge --strategy=ours origin/create-pull-request/pkg-update
git checkout -B create-pull-request/pkg-update
git branch --set-upstream-to origin/create-pull-request/pkg-update
- name: Update test/Manifest.toml
run: julia --project=test -e "import Pkg; Pkg.update()"
- name: Update docs/Manifest.toml
Expand Down

0 comments on commit 414e903

Please sign in to comment.