Skip to content

Commit

Permalink
feat(ci): add manual trigger copy candidate to stable action
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomgrus committed Dec 20, 2021
1 parent eb86420 commit 3613f7f
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/charts-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,34 @@ on:
- main
paths:
- 'charts/stable/**'

workflow_dispatch:
inputs:
copy:
description: 'Copy candidate before running the release pipeline'
required: true
default: 'true'
jobs:
copy-candidate:
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.copy == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Copy candidate to stable version
working-directory: code
run: make copy-candidate-to-stable
- uses: EndBug/add-and-commit@v7
with:
add: 'charts/stable'
branch_mode: throw
message: 'chore(charts): candidate to stable [skip ci]'
pathspec_error_handling: exitImmediately
pull: '--rebase --autostash'
default_author: github_actions
release:
needs: copy-candidate
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 3613f7f

Please sign in to comment.