Skip to content

Create charts PR on tags creation #30

Create charts PR on tags creation

Create charts PR on tags creation #30

name: Create charts PR on tags creation
on:
workflow_dispatch:
workflow_run:
workflows: [ "Build and push images on tags" ]
types:
- completed
branches:
- main
jobs:
create_pr:
name: Create charts PR on tags creation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set latest tag
id: vars
run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Get tag
run: echo "${{ steps.vars.output.tag }}"
- name: Set env
run: echo "GIT_TAG=`echo $(git fetch -t && git describe --tags --abbrev=0)`" >> $GITHUB_ENV
- name: Get GIT_TAG
run: echo "$GIT_TAG"
# - run: bash ./docker/create-pr.sh
# env:
# GH_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }}
# GH_REF: ${{ steps.vars.output.tag }}
# IS_TAG: "true"
# ENVS: "staging,production"