Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
damontecres committed Jan 20, 2024
1 parent 53676fa commit 23ea244
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Development build
on:
push:
branches:
- main
- fea/debug-builds

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -25,21 +25,22 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.git.deleteRef({
await github.rest.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/${{ env.TAG_NAME }}"
})
} catch (e) {
console.log("The ${{ env.TAG_NAME }} tag doesn't exist yet: " + e)
}
await github.git.createRef({
await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ env.TAG_NAME }}",
sha: context.sha
})
build:
needs: advance-tag
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit 23ea244

Please sign in to comment.