-
Notifications
You must be signed in to change notification settings - Fork 12
68 lines (64 loc) · 3.02 KB
/
approve_esm_tests_changes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# ESM-Tools pre-merge automation
# ==============================
# In a pull-request, if a comment contains #approve-changes, the following steps are triggered:
# 1. runs esm_tests for each computer with the saving of the laste_tested flag true
# 2. commits those changes to the esm_tests_info repo
name: approve esm_tests changes
# Triggers the workflow on an issue comment
on:
issue_comment:
types: [created]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# Sequence of tasks that will be executed as part of the job
ollie:
# Run this workflow ONLY if the `issue_comment` is in a pull-request and the comment text contains `#approve-changes`
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '#approve-changes') }}
uses: ./.github/workflows/esm_tests_computer_workflow.yml
with:
computer: ollie1
update_esm_tests_info: true
test_flags: -cngu -s True
secrets:
ESM_TOOLS_BOT: ${{ secrets.ESM_TOOLS_BOT }}
levante:
# Run this workflow ONLY if the `issue_comment` is in a pull-request and the comment text contains `#approve-changes`
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '#approve-changes') }}
uses: ./.github/workflows/esm_tests_computer_workflow.yml
with:
computer: levante1
update_esm_tests_info: true
test_flags: -cngu -s True
secrets:
ESM_TOOLS_BOT: ${{ secrets.ESM_TOOLS_BOT }}
juwels:
# Run this workflow ONLY if the `issue_comment` is in a pull-request and the comment text contains `#approve-changes`
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '#approve-changes') }}
uses: ./.github/workflows/esm_tests_computer_workflow.yml
with:
computer: jwlogin01.juwels
update_esm_tests_info: true
test_flags: -cngu -s True
secrets:
ESM_TOOLS_BOT: ${{ secrets.ESM_TOOLS_BOT }}
aleph:
# Run this workflow ONLY if the `issue_comment` is in a pull-request and the comment text contains `#approve-changes`
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '#approve-changes') }}
uses: ./.github/workflows/esm_tests_computer_workflow.yml
with:
computer: elogin1
update_esm_tests_info: true
test_flags: -cngu -s True
secrets:
ESM_TOOLS_BOT: ${{ secrets.ESM_TOOLS_BOT }}
blogin:
# Run this workflow ONLY if the `issue_comment` is in a pull-request and the comment text contains `#approve-changes`
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '#approve-changes') }}
uses: ./.github/workflows/esm_tests_computer_workflow.yml
with:
computer: blogin1
update_esm_tests_info: true
test_flags: -cngu -s True
secrets:
ESM_TOOLS_BOT: ${{ secrets.ESM_TOOLS_BOT }}