Skip to content

Commit

Permalink
use a reusable workflow for create-release job (#11549)
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik authored Apr 2, 2024
1 parent c4746ea commit f83867f
Showing 1 changed file with 3 additions and 16 deletions.
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

0 comments on commit f83867f

Please sign in to comment.