Skip to content

Commit f2b6d5a

Browse files
authored
ci(action): auto-bump daily and update who notify to (#367)
1 parent ba50a00 commit f2b6d5a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/bump-golang-previous.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ name: bump-golang-previous
44
on:
55
workflow_dispatch:
66
schedule:
7-
- cron: '0 21 * * 6'
7+
- cron: '0 4 * * 1-6'
88

99
permissions:
1010
contents: read
1111

12+
env:
13+
JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
14+
1215
jobs:
1316
bump:
1417
runs-on: ubuntu-latest
@@ -23,3 +26,5 @@ jobs:
2326
vaultUrl: ${{ secrets.VAULT_ADDR }}
2427
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
2528
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
29+
notifySlackChannel: "#ingest-notifications"
30+
messageIfFailure: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @agent-team please look what's going on <${{ env.JOB_URL }}|here>"

.github/workflows/bump-golang.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ name: bump-golang-main
44
on:
55
workflow_dispatch:
66
schedule:
7-
- cron: '0 20 * * 6'
7+
- cron: '0 3 * * 1-6'
88

99
permissions:
1010
contents: read
1111

12+
env:
13+
JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
14+
1215
jobs:
1316
bump:
1417
runs-on: ubuntu-latest
@@ -22,3 +25,5 @@ jobs:
2225
vaultUrl: ${{ secrets.VAULT_ADDR }}
2326
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
2427
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
28+
notifySlackChannel: "#ingest-notifications"
29+
messageIfFailure: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @agent-team please look what's going on <${{ env.JOB_URL }}|here>"

0 commit comments

Comments
 (0)