pkg-update #1334
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pkg-update | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
branches: | |
- actions/trigger/pkg-update | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
# https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#push-using-ssh-deploy-keys | |
# https://github.com/tkf/julia-merge-except-manifests | |
- uses: tkf/julia-merge-except-manifests@v1 | |
with: | |
target: create-pull-request/pkg-update | |
- run: git status | |
- run: git diff --cached | |
# https://github.com/tkf/julia-update-manifests | |
- name: Update */Manifest.toml | |
uses: tkf/julia-update-manifests@v1 | |
with: | |
version: '1.4' | |
projects: test/environments/main docs | |
- run: git status | |
- run: git diff | |
# 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@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Update */Manifest.toml | |
title: 'Update */Manifest.toml' | |
body: | | |
## Commit Message | |
Update */Manifest.toml | |
# When merging PR via Mergify using squash method, it can | |
# create large commit message by listing titles of all | |
# commits (default behavior of GitHub squash merge). | |
# Overriding the message here by using Mergify's API. | |
# | |
# --- Commit Message and squash Method | |
# https://doc.mergify.io/actions.html#commit-message-and-squash-method | |
labels: no changelog | |
branch: create-pull-request/pkg-update | |
base: master | |
- name: Check output environment variable | |
run: echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}" |