diff --git a/.github/workflows/upload-on-tag.yaml b/.github/workflows/upload-on-tag.yaml index a7138907..63cfdfe0 100644 --- a/.github/workflows/upload-on-tag.yaml +++ b/.github/workflows/upload-on-tag.yaml @@ -60,18 +60,13 @@ jobs: uses: actions/checkout@v2 with: repository: nvdaes/addonFiles - - name: Get release - id: get_release + - name: Get branch + id: get_branch uses: actions/github-script@0.9.0 with: github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const release = github.repos.getReleaseByTag({ - owner: context.repo.owner, - repo: context.repo.repo, - tag: ${{ github.ref }} - }) - return release + script: return context.repo.repo + "-" + context.payload.ref.replace(/\/refs\/tags\//, ''); + result-encoding: string - name: Create branch - run: git checkout -b format('{0}-{1}', ${{ steps.create_release.outputs.result.repository.name }}, ${{ github.ref }}) + run: git checkout -b ${{ steps.get_branch.outputs.result }} \ No newline at end of file