Skip to content

Commit

Permalink
Use external actions in pkg-update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jan 4, 2020
1 parent dd966ee commit 675ad97
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions .github/workflows/pkg-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,40 @@ name: pkg-update
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- actions/trigger/pkg-update

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

# https://github.com/tkf/julia-merge-except-manifests
- name: 'Merge master to create-pull-request/pkg-update'
uses: tkf/julia-merge-except-manifests@v1
with:
version: ${{ matrix.julia-version }}
target: create-pull-request/pkg-update

- 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/tkf/julia-update-manifests
- name: Update */Manifest.toml
uses: tkf/julia-update-manifests@v1
with:
version: 1.2
projects: test docs

# https://github.com/peter-evans/create-pull-request
# https://github.com/marketplace/actions/create-pull-request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v1
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
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update */Manifest.toml
title: '[AUTO] Update */Manifest.toml'
labels: no changelog
branch: create-pull-request/pkg-update
branch-suffix: none
base: master
- name: Check output environment variable
run: echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"

0 comments on commit 675ad97

Please sign in to comment.