-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (36 loc) · 1.15 KB
/
update-acp-image.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
name: bump acp image
on:
repository_dispatch:
types: [bump-acp-image]
jobs:
update_repo:
name: Update ACP image
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Checkout repo
uses: actions/checkout@v3
with:
ref: master
fetch-depth: 0
- name: Update ACP image
run: ./scripts/override_env.sh ACP_VERSION ${{ github.event.client_payload.acp-version }}
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Github automation
author_email: [email protected]
message: 'Bump ACP image'
add: '.env-local'
new_branch: bump-acp-image-${{ steps.date.outputs.date }}
- name: Create PR
uses: devops-infra/[email protected]
with:
source_branch: bump-acp-image-${{ steps.date.outputs.date }}
github_token: ${{ secrets.GITHUB_TOKEN }}
title: Bump ACP image
body: "**Automated pull request**"
draft: false
allow_no_diff: false