-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #430 from NikitaSkrynnik/fix-reusable-workflows
Fix release and pr-for-updates workflows
- Loading branch information
Showing
5 changed files
with
42 additions
and
58 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 |
---|---|---|
@@ -1,58 +1,11 @@ | ||
--- | ||
name: Release | ||
name: Pull Request on update/* Branch Push | ||
on: | ||
workflow_run: | ||
types: | ||
- completed | ||
workflows: | ||
- "ci" | ||
push: | ||
branches: | ||
- update/** | ||
jobs: | ||
print-debug-info: | ||
name: Print debug info for Release workflow | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hmarr/debug-action@v2 | ||
|
||
get-tag: | ||
name: Get tag | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_branch, 'release/') }} | ||
outputs: | ||
tag: ${{ steps.get-tag-step.outputs.tag }} | ||
steps: | ||
- name: Get tag | ||
run: | | ||
branch=${{github.event.workflow_run.head_branch}} | ||
echo '::set-output name=tag::'${branch#release/} | ||
id: get-tag-step | ||
|
||
create-release: | ||
name: Create release | ||
needs: get-tag | ||
uses: networkservicemesh/.github/.github/workflows/release.yaml@main | ||
with: | ||
tag: ${{ needs.get-tag.outputs.tag }} | ||
secrets: | ||
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} | ||
|
||
release-dependent-repositories: | ||
name: Release dependent repositories | ||
needs: [get-tag, create-release] | ||
uses: networkservicemesh/.github/.github/workflows/release-dependent-repositories.yaml@main | ||
with: | ||
tag: ${{ needs.get-tag.outputs.tag }} | ||
dependent_repositories: | | ||
["sdk-k8s", | ||
"sdk-kernel", | ||
"cmd-nsmgr", | ||
"cmd-nsmgr-proxy", | ||
"cmd-registry-memory", | ||
"cmd-registry-proxy-dns", | ||
"cmd-nse-remote-vlan", | ||
"cmd-nse-vfio", | ||
"cmd-nsc-init", | ||
"cmd-ipam-vl3", | ||
"cmd-map-ip-k8s", | ||
"cmd-admission-webhook-k8s"] | ||
auto-pull-request: | ||
uses: networkservicemesh/.github/.github/workflows/pr-for-updates.yaml@main | ||
secrets: | ||
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} |
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