Skip to content

Merge branch 'main' into cron_esmvalbot_test #20

Merge branch 'main' into cron_esmvalbot_test

Merge branch 'main' into cron_esmvalbot_test #20

name: Run Esmvalbot Test
on:
push:
branches:
- cron_esmvalbot_test
# scheduled once every week
schedule:
- cron: '0 4 */7 * *'
# 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@v3
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@v5
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] Run esmvalbot test'
body: Automatic PR please DO NOT merge! This is for testing Esmvalbot only.
labels: |
testing
esmvalbot
automatedPR
assignees: valeriupredoi
reviewers: valeriupredoi
draft: true
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
@esmvalbot please run examples/recipe_python.yml
pr_number: ${{env.PULL_REQUEST_NUMBER}}