Skip to content

Commit 5453d58

Browse files
Run a periodic esmvalbot test via automated PR (#3465)
1 parent bd06d6c commit 5453d58

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Run Esmvalbot Test
2+
3+
on:
4+
# push:
5+
# branches:
6+
# - cron_esmvalbot_test
7+
# scheduled once every 2 weeks
8+
schedule:
9+
- cron: '0 4 */14 * *'
10+
11+
# Required shell entrypoint to have properly configured bash shell
12+
defaults:
13+
run:
14+
shell: bash -l {0}
15+
16+
jobs:
17+
run-esmvalbot:
18+
runs-on: 'ubuntu-latest'
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Create empty commit on branch
24+
run: |
25+
git config user.name 'Valeriu Predoi'
26+
git config user.email '[email protected]'
27+
git commit --allow-empty -m "empty commit"
28+
# Automated PR where we run "@esmvalbot please run examples/recipe_python.yml"
29+
# as comment in the PR
30+
# see https://github.com/marketplace/actions/create-pull-request
31+
- name: Create Auto PR
32+
uses: peter-evans/create-pull-request@v7
33+
with:
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
commit-message: empty message
36+
# defaults are GH bot: # ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
37+
committer: Valeriu Predoi <[email protected]>
38+
author: Valeriu Predoi <[email protected]>
39+
signoff: false
40+
branch: run-esmvalbot
41+
delete-branch: true
42+
title: '[EsmvalbotTest] Periodic reminder to run an esmvalbot test'
43+
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:'
44+
labels: |
45+
testing
46+
esmvalbot
47+
automatedPR
48+
assignees: valeriupredoi
49+
reviewers: valeriupredoi
50+
draft: true

0 commit comments

Comments
 (0)