Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a reusable workflow in create-release job #11549

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,9 @@ jobs:
create-release:
name: Create release
needs: [get-tag, replace-params]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{github.event.ref}}
- name: Push tag ${{ needs.get-tag.outputs.tag }}
run: |
git status
git tag ${{ needs.get-tag.outputs.tag }}
git push origin ${{ needs.get-tag.outputs.tag }} -f
- name: Create release ${{ needs.get-tag.outputs.tag }}
run: |
gh release create ${{ needs.get-tag.outputs.tag }} --title ${{ needs.get-tag.outputs.tag }} --target ${{github.event.workflow_run.head_branch}} --generate-notes
env:
GH_TOKEN: ${{ secrets.token }}
uses: networkservicemesh/.github/.github/workflows/release.yaml@main
secrets:
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}

update-dependent-repositories:
strategy:
Expand Down
Loading