diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6c515ef5b06c..f8ed65cd9f37 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -84,9 +84,22 @@ jobs: create-release: name: Create release needs: [get-tag, replace-params] - uses: networkservicemesh/.github/.github/workflows/release.yaml@main - secrets: - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: refs/heads/${{ 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.ref }} --generate-notes + env: + GH_TOKEN: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} update-dependent-repositories: strategy: