forked from smartcontractkit/ccip
-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (54 loc) · 2.2 KB
/
operator-ui-cd.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
name: Operator UI CD
on:
push:
branches:
- develop
workflow_dispatch:
schedule:
- cron: "0 */1 * * *" # Run every hour
jobs:
update-version:
permissions:
id-token: write
name: Update Version
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Update version
id: update
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./operator_ui/check.sh
# - name: Assume role capable of dispatching action
# uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
# with:
# role-to-assume: ${{ secrets.AWS_OIDC_CHAINLINK_CI_AUTO_PR_TOKEN_ISSUER_ROLE_ARN }}
# role-duration-seconds: ${{ secrets.aws-role-duration-seconds }}
# role-session-name: operator-ui-cd.update-version
# aws-region: ${{ secrets.AWS_REGION }}
#
# - name: Get Github Token
# id: get-gh-token
# uses: smartcontractkit/chainlink-github-actions/github-app-token-issuer@chore/update-github-app-token-issuer
# with:
# url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }}
#
# - name: Open PR
# uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
# with:
# title: Update Operator UI from ${{ steps.update.outputs.current_tag }} to ${{ steps.update.outputs.latest_tag }}
# token: ${{ steps.get-gh-token.outputs.access-token }}
# branch: chore/update-operator-ui
# commit-message: Update Operator UI from ${{ steps.update.outputs.current_tag }} to ${{ steps.update.outputs.latest_tag }}
# body: ${{ steps.update.outputs.body }}
- name: Collect Metrics
if: always()
id: collect-gha-metrics
uses: smartcontractkit/push-gha-metrics-action@0281b09807758be1dcc41651e44e62b353808c47 # v2.1.0
with:
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
this-job-name: Update Version
continue-on-error: true