diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b6c9e19..a7e383e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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/autotag-action@v1.1.55 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: