Skip to content

build: Release chart/agh3 v3.8.7 #33

build: Release chart/agh3 v3.8.7

build: Release chart/agh3 v3.8.7 #33

name: ⚙️ [AGH3] Auto Update Develop Release Channel
on:
workflow_dispatch:
pull_request:
types:
- closed
branches:
- main
paths:
- charts/agh3/Chart.yaml
jobs:
trigger-develop-release-channel-update:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
steps:
- name: 🔔 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 👁️ Lookup Chart Version
id: chartVersion
uses: mikefarah/yq@v4
with:
cmd: yq '.version' charts/agh3/Chart.yaml
- name: 👁️ Lookup App Version
id: appVersion
uses: mikefarah/yq@v4
with:
cmd: yq '.appVersion' charts/agh3/Chart.yaml
- name: 📢 Invoke workflow to update Release Channel
run: |
echo '{"chart_version": "${{ steps.chartVersion.outputs.result }}", "app_version": "${{ steps.appVersion.outputs.result }}", "release_channel": "develop"}' | \
gh workflow run agh3-ctr-update-release.yaml -R Leukocyte-Lab/release -r develop --json
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}