Skip to content

release: prepare v0.16.0-rc #4

release: prepare v0.16.0-rc

release: prepare v0.16.0-rc #4

name: Chart-Content
on:
pull_request:
types:
- opened
- synchronize
paths:
- deploy/helm/Chart.yaml
jobs:
appVersion-validation:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get latest tag
id: latest_tag
run: |
latest_tag=$(git describe --tags --abbrev=0 | sed 's/v//')
echo "::set-output name=tag::$latest_tag"
- name: Read Chart.yaml appVersion
id: chart_version
run: |
app_version=$(grep -E '^appVersion:' deploy/helm/Chart.yaml | awk '{print $2}')
echo "::set-output name=app_version::$app_version"
- name: add app-version-changed label
if: ${{ steps.latest_tag.outputs.tag != steps.chart_version.outputs.app_version }}
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: app-version-changed
- name: remove app-version-changed label
if: ${{ steps.latest_tag.outputs.tag == steps.chart_version.outputs.app_version }}
uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: app-version-changed