-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- ci24 # todo: hotwired, do not merge | ||
paths-ignore: | ||
- '.github/**' | ||
- '.tools/**' | ||
|
@@ -45,14 +46,6 @@ jobs: | |
- name: Inject slug/short variables | ||
uses: rlespinasse/[email protected] | ||
|
||
# No matter how we try ski ci options from GitHub it doesn't work | ||
- name: Temporarily disable docs branch protections | ||
uses: benjefferies/[email protected] | ||
with: | ||
access_token: ${{ secrets.DOCS_PERMISSIONS_TOKEN }} | ||
branch: ${{ github.event.repository.default_branch }} | ||
enforce_admins: false | ||
|
||
# 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: | | ||
|
@@ -68,11 +61,3 @@ jobs: | |
-p shortSha="${GITHUB_SHA_SHORT}" \ | ||
-p gitopsDestinationFile="registry/environments/production/kubefirst-docs.yaml" \ | ||
--wait --log | ||
- name: Enable back docs branch protection | ||
uses: benjefferies/[email protected] | ||
if: always() # Force to always run this step to ensure the protection is always turned back on no matter if previous step fail | ||
with: | ||
access_token: ${{ secrets.DOCS_PERMISSIONS_TOKEN }} | ||
branch: ${{ github.event.repository.default_branch }} | ||
enforce_admins: true |