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: