-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run a periodic esmvalbot test via automated PR (#3465)
- Loading branch information
1 parent
bd06d6c
commit 5453d58
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Run Esmvalbot Test | ||
|
||
on: | ||
# push: | ||
# branches: | ||
# - cron_esmvalbot_test | ||
# scheduled once every 2 weeks | ||
schedule: | ||
- cron: '0 4 */14 * *' | ||
|
||
# Required shell entrypoint to have properly configured bash shell | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
jobs: | ||
run-esmvalbot: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Create empty commit on branch | ||
run: | | ||
git config user.name 'Valeriu Predoi' | ||
git config user.email '[email protected]' | ||
git commit --allow-empty -m "empty commit" | ||
# Automated PR where we run "@esmvalbot please run examples/recipe_python.yml" | ||
# as comment in the PR | ||
# see https://github.com/marketplace/actions/create-pull-request | ||
- name: Create Auto PR | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: empty message | ||
# defaults are GH bot: # ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
committer: Valeriu Predoi <[email protected]> | ||
author: Valeriu Predoi <[email protected]> | ||
signoff: false | ||
branch: run-esmvalbot | ||
delete-branch: true | ||
title: '[EsmvalbotTest] Periodic reminder to run an esmvalbot test' | ||
body: 'Automatic PR; please DO NOT merge! This is for testing Esmvalbot only. @valeriupredoi @bouweandela @schlunma please run an ESMValBot test here; if the bot runs fine, please close the auto PR, if it has issues, please open a Github issue and tag @valeriupredoi. Many thanks :beers:' | ||
labels: | | ||
testing | ||
esmvalbot | ||
automatedPR | ||
assignees: valeriupredoi | ||
reviewers: valeriupredoi | ||
draft: true |