From 13c954673bcdd25fb72c14fc3320ac6a62a289d9 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Wed, 27 Mar 2024 13:17:05 +0700 Subject: [PATCH] use a reusable workflow for create-release job Signed-off-by: NikitaSkrynnik --- .github/workflows/release.yaml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7095c2a7c4e4..b7ed68970eeb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: