-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.42 KB
/
web.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
name: Testing API Dispatch
on:
repository_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm run build -- ${{ github.event.client_payload.data }}
- name: Committing changes with rebase
id: push
continue-on-error: true
uses: benkaiser/rebase-commit-push@v1.1
with:
author_name: Github Actions
author_email: actions@github.com
- name: Retry Push 1
continue-on-error: true
id: retry1
if: steps.push.outcome=='failure'
uses: benkaiser/rebase-commit-push@v1.1
with:
author_name: Github Actions
author_email: actions@github.com
- name: Retry Push 2
continue-on-error: true
id: retry2
if: steps.retry1.outcome=='failure'
uses: benkaiser/rebase-commit-push@v1.1
with:
author_name: Github Actions
author_email: actions@github.com
- name: Retry Push 3
continue-on-error: true
id: retry3
if: steps.retry2.outcome=='failure'
uses: benkaiser/rebase-commit-push@v1.1
with:
author_name: Github Actions
author_email: actions@github.com
- name: set the status
if: always()
run: |
if ${{ steps.push.outcome=='success' || steps.retry1.outcome=='success' || steps.retry2.outcome=='success' || steps.retry3.outcome=='success' }}; then
echo fine
else
exit 1
fi