-
Notifications
You must be signed in to change notification settings - Fork 70
61 lines (50 loc) · 1.67 KB
/
update_chains_preconfigured.yaml
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
name: Update chains preconfigured
on:
schedule:
- cron: '0 8 1/3 * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-preconfigured:
runs-on: ubuntu-latest
steps:
- name: Checkout current repository to Master branch
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 🛠 Set up actual paths
uses: ./.github/workflows/setup-path
- name: ⚙️ Install dependencies
run: make init
- name: 🦾 Update files and data in chains preconfigured
run: make update-chains-preconfigured
- name: Make Pull Request
uses: ./.github/workflows/make-pull-request
with:
commit-files: chains/**
commit-message: Update preconfigured chains
app-id: ${{ secrets.PR_APP_ID}}
app-token: ${{ secrets.PR_APP_TOKEN}}
pr-reviewer: ${{ env.PR_REVIEWER }}
branch-name: update-preconfigured-chains
pr-title: 🆙 Update preconfigured chains
pr-body: This PR was generated automatically 🤖
pr-base: master
alert:
runs-on: ubuntu-latest
needs: update-preconfigured
if: always() && (needs.update-preconfigured.result == 'failure')
env:
GITHUB_WORKFLOW_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
steps:
- name: Report
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
Preconfigured update workflow failed, lets check:
Failed run:
${{ env.GITHUB_WORKFLOW_URL }}