Skip to content

Commit

Permalink
Add .github/workflows/{CompatHelper.yml,pkg-update.yml}
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Nov 15, 2019
1 parent 8266f98 commit e250eb3
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CompatHelper

on:
schedule:
- cron: '0 0 * * *'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.2.0]
julia-arch: [x86]
os: [ubuntu-latest]
steps:
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- name: Install dependencies
run: julia -e 'using Pkg; Pkg.add(Pkg.PackageSpec(name = "CompatHelper", url = "https://github.com/bcbi/CompatHelper.jl.git"))'
- name: CompatHelper.main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JULIA_DEBUG: CompatHelper
run: >-
julia -e '
using CompatHelper;
CompatHelper.main() do;
run(`julia --project=test -e "import Pkg; Pkg.instantiate(); Pkg.update()"`);
run(`julia --project=docs -e "import Pkg; Pkg.instantiate(); Pkg.update()"`);
end
'
37 changes: 37 additions & 0 deletions .github/workflows/pkg-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: pkg-update

on:
schedule:
- cron: '0 0 * * *'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.2.0]
julia-arch: [x86]
os: [ubuntu-latest]
steps:
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}

- uses: actions/checkout@v1
- name: Update test/Manifest.toml
run: julia --project=test -e "import Pkg; Pkg.update()"
- name: Update docs/Manifest.toml
run: julia --project=docs -e "import Pkg; Pkg.update()"

# https://github.com/marketplace/actions/create-pull-request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v1.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MESSAGE: Update */Manifest.toml
PULL_REQUEST_TITLE: '[AUTO] Update */Manifest.toml'
PULL_REQUEST_LABELS: no changelog
PULL_REQUEST_BRANCH: create-pull-request/pkg-update
BRANCH_SUFFIX: none
- name: Check output environment variable
run: echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"

0 comments on commit e250eb3

Please sign in to comment.