From c0ff2d15b7f1dd678f3c0fcaec0ff04802acafe5 Mon Sep 17 00:00:00 2001 From: "Abdurakhman R." Date: Tue, 29 Oct 2024 18:53:31 +0500 Subject: [PATCH] [UPD] release trigger; --- .github/workflows/ci-release-version.yml | 18 ++++++++---------- .release-version | 2 -- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci-release-version.yml b/.github/workflows/ci-release-version.yml index 3340380..39863d2 100644 --- a/.github/workflows/ci-release-version.yml +++ b/.github/workflows/ci-release-version.yml @@ -51,13 +51,11 @@ jobs: git push origin $new_tag - name: Trigger Release Workflow - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - await github.actions.createWorkflowDispatch({ - owner: context.repo.owner, - repo: context.repo.repo, - workflow_id: "ci.yml", - ref: "main", - }); + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + curl -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $GITHUB_TOKEN" \ + https://api.github.com/repos/${{ github.repository }}/actions/workflows/ci.yml/dispatches \ + -d '{"ref":"main"}' diff --git a/.release-version b/.release-version index 97697bc..e69de29 100644 --- a/.release-version +++ b/.release-version @@ -1,2 +0,0 @@ -v0.1.2 -version v0.1.2 (build 11575241483)