Skip to content

Commit

Permalink
ci: update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarbukovsky committed Mar 24, 2024
1 parent e4e7726 commit 345b177
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,14 @@ on:
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Tag
uses: actions/github-script@v3
strategy:
matrix:
node-version:
- 12
steps:
- uses: phish108/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
try {
await github.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/latest"
})
} catch (e) {
console.log("The latest tag doesn't exist yet: " + e)
}
await github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/latest",
sha: context.sha
})
github-token: ${{ secrets.GITHUB_TOKEN}}
build:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 345b177

Please sign in to comment.