-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathtrigger-agent-helm-chart-update.yaml
More file actions
63 lines (53 loc) · 1.88 KB
/
trigger-agent-helm-chart-update.yaml
File metadata and controls
63 lines (53 loc) · 1.88 KB
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
62
63
name: Trigger Agent Helm Chart Update
on:
workflow_dispatch:
inputs:
TARGET_BRANCH:
description: 'Target branch to create PR against (e.g. release-1.17)'
required: true
type: string
permissions: {}
jobs:
update-agent-helm-chart:
name: Update Agent Helm Chart for ${{ inputs.TARGET_BRANCH }}
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.TARGET_BRANCH }}
submodules: true
- name: Set up Git config
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Generate/update agent helm chart
run: make agent-helm-chart
- name: Prepare metadata for PR
id: metadata
shell: bash
run: |
set -euo pipefail
TIMESTAMP=$(date -u +"%Y%m%d-%H%M%S")
echo "ts=${TIMESTAMP}" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
id: create_pr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore(agent-helm-chart): regenerate chart"
branch: build/agent-helm-chart-${{ steps.metadata.outputs.ts }}
delete-branch: true
title: "chore(agent-helm-chart): regenerate chart"
body: |
This PR regenerates files under `helm-charts/redhat-argocd-agent` by running `make agent-helm-chart`.
Base branch: `${{ inputs.TARGET_BRANCH }}`
Automatically generated by GitHub Actions.
labels: |
auto-merge
base: ${{ inputs.TARGET_BRANCH }}