Skip to content

Commit

Permalink
ci: try to temporarely disable branch protection, and renable it after (
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper authored Jul 14, 2023
1 parent 998b8fe commit b0cb4a0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .argo/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ spec:
- name: gitUrlNoProtocol
value: '{{workflow.parameters.gitUrlNoProtocol}}'
- name: commitMessage
value: "[skip ci] [CI SKIP] setting {{workflow.parameters.appName}} {{workflow.parameters.environment}} to chart version {{steps.get-updated-chart-version.outputs.result}}\n\nskip-checks:true"
value: "setting {{workflow.parameters.appName}} {{workflow.parameters.environment}} to chart version {{steps.get-updated-chart-version.outputs.result}}"

- - name: set-environment-version
templateRef:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ jobs:
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4

# No matter how we try ski ci options from GitHub it doesn't work
- name: Temporarily disable docs branch protections
uses: benjefferies/branch-protection-bot@master
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}

# todo need to look repositoryGitURL, this needs to be overrideable from here and respected on the template side for both repositories
- name: Deploy docs on production
run: |
Expand All @@ -50,3 +57,9 @@ jobs:
-p shortSha="${GITHUB_SHA_SHORT}" \
--wait --log
- name: Enable back docs branch protection
uses: benjefferies/branch-protection-bot@master
if: always() # Force to always run this step to ensure the protection is always turned back on no matetr if previous step fail
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
2 changes: 1 addition & 1 deletion charts/docs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: 533ba6f
description: Kubefirst documentation Helm chart
name: docs
type: application
version: 0.23.0
version: 0.25.0

0 comments on commit b0cb4a0

Please sign in to comment.