Skip to content

Commit

Permalink
Get branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdaes committed Dec 28, 2020
1 parent 4498883 commit 8d043fc
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/upload-on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}

0 comments on commit 8d043fc

Please sign in to comment.