-
Notifications
You must be signed in to change notification settings - Fork 35
51 lines (43 loc) · 1.49 KB
/
CRON.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
name: Check for updates
on:
schedule:
# Run every day at 5.00 AM UTC
- cron: "0 5 * * *"
jobs:
check:
name: Check for new versions
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check for new TF and TG
env:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
TERM: xterm-256color
run: make update-versions
# env.VERSION_TAG is set by 'make update-versions'
- name: Commit and push changes (conditional)
if: env.VERSION_TAG != 'null'
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
target_branch: dependency/${{ env.VERSION_TAG }}
commit_message: Bump for ${{ env.VERSION_TAG }}
- name: Download Pull Request template
if: env.VERSION_TAG != 'null'
shell: bash
run: |
mkdir -p .tmp
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md -o .tmp/PULL_REQUEST_TEMPLATE.md
- name: Create pull request
if: env.VERSION_TAG != 'null'
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
title: Bump for ${{ env.VERSION_TAG }}
assignee: ${{ github.actor }}
label: automatic,dependency
template: .tmp/PULL_REQUEST_TEMPLATE.md
get_diff: true