-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace version/release tasks to support hotfixes * remove codesign step * update condition for create_release * set LATEST_TAG and update IS_HOTFIX detection * add new starter.yml called workflow * update SDK_SYNC_PAT to input:secret.token * detect empty tags list * Reformat manifest properties summary * use `` not $()
- Loading branch information
1 parent
2b982d8
commit 85ceea5
Showing
4 changed files
with
222 additions
and
83 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
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
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
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Bootstrap Starter Workflow | ||
on: | ||
workflow_call: | ||
#inputs: | ||
# buildtype: | ||
# description: 'Platform to build' | ||
# required: true | ||
# type: string | ||
# release_dir: | ||
# description: 'release_dir property from integration-manifest.json' | ||
# required: true | ||
# type: string | ||
# update_catalog: | ||
# description: 'update_catalog property from integration-manifest.json' | ||
# required: true | ||
# type: string | ||
secrets: | ||
token: | ||
description: 'GitHub token' | ||
required: true | ||
|
||
jobs: | ||
call-assign-from-json-workflow: | ||
uses: Keyfactor/actions/.github/workflows/assign-env-from-json.yml@main | ||
|
||
call-get-primary-language: | ||
outputs: | ||
primary_language: ${{ steps.read.outputs.primary_language }} | ||
runs-on: ubuntu-latest | ||
name: Detect Primary Language | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.token }} | ||
- name: Read primary language | ||
id: read | ||
uses: fiddlermikey/[email protected] | ||
with: | ||
token: ${{ secrets.token }} | ||
- name: Display type | ||
id: display | ||
run: | | ||
echo "primary_language=${{ steps.read.outputs.primary_language}}" | tee -a "$GITHUB_OUTPUT" | tee -a $GITHUB_STEP_SUMMARY | ||
call-create-github-release-workflow: | ||
uses: Keyfactor/actions/.github/workflows/github-release.yml@support-hotfixes | ||
|
||
call-dotnet-build-and-release-workflow: | ||
needs: [call-get-primary-language, call-assign-from-json-workflow, call-create-github-release-workflow] | ||
if: needs.call-get-primary-language.outputs.primary_language == 'C#' | ||
uses: keyfactor/actions/.github/workflows/dotnet-build-and-release.yml@support-hotfixes | ||
with: | ||
release_version: ${{ needs.call-create-github-release-workflow.outputs.release_version }} | ||
release_url: ${{ needs.call-create-github-release-workflow.outputs.release_url }} | ||
release_dir: ${{ needs.call-assign-from-json-workflow.outputs.release_dir }} | ||
|
||
secrets: | ||
token: ${{ secrets.token }} | ||
|
||
call-go-build-and-tag-workflow: | ||
needs: [call-get-primary-language, call-assign-from-json-workflow, call-create-github-release-workflow] | ||
if: needs.call-get-primary-language.outputs.primary_language == 'Go' | ||
uses: fiddlermikey/actions/.github/workflows/go-build-and-tag.yml@dev | ||
with: | ||
release_version: ${{ needs.call-create-github-release-workflow.outputs.release_version }} | ||
|
||
|
||
secrets: | ||
token: ${{ secrets.token }} | ||
|
||
#call-generate-readme-workflow: | ||
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | ||
# uses: Keyfactor/actions/.github/workflows/generate-readme.yml@main | ||
# secrets: | ||
# token: ${{ secrets.APPROVE_README_PUSH }} | ||
|
||
#call-update-catalog-workflow: | ||
# if: inputs.update_catalog == 'True' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | ||
# uses: Keyfactor/actions/.github/workflows/update-catalog.yml@main | ||
# secrets: | ||
# token: ${{ secrets.SDK_SYNC_PAT }} |