diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml deleted file mode 100644 index 7e3c21a..0000000 --- a/.github/workflows/actions.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Autotag Action Test - -on: - push: - branches: - - master - -jobs: - package: - name: Package Strategy - runs-on: ubuntu-latest - steps: - # Checkout updated source code - - uses: actions/checkout@v2 - - # If the version has changed, create a new git tag for it. - - name: Tag Package - id: package_autotagger - uses: butlerlogic/action-autotag@master - with: - tag_prefix: test_package_ - commit_message_template: "{{number}}) {{message}} ({{author}})\n" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Rollback Package Test Release - id: package_rollback - if: success() && ${{ steps.package_autotagger.outputs.tagcreated }} = "yes" - uses: author/action-rollback@master - with: - tag: ${{ steps.package_autotagger.outputs.tagrequested }} - delete_orphan_tag: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - docker: - name: Docker Strategy - runs-on: ubuntu-latest - steps: - # Checkout updated source code - - uses: actions/checkout@v2 - - # If the version has changed, create a new git tag for it. - - name: Tag Dockerfile - id: docker_autotagger - uses: butlerlogic/action-autotag@master - with: - strategy: docker - tag_prefix: test_docker_ - root: ./test - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Rollback Docker Test Release - id: docker_rolback - if: success() && ${{ steps.docker_autotagger.outputs.tagcreated }} = "yes" - uses: author/action-rollback@master - env: - TAG: ${{ steps.docker_autotagger.outputs.tagrequested }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag: ${{ steps.docker_autotagger.outputs.tagrequested }} - delete_orphan_tag: true - diff --git a/src/lib/tag.js b/src/lib/tag.js index 2ad3670..97b8e43 100644 --- a/src/lib/tag.js +++ b/src/lib/tag.js @@ -1,6 +1,6 @@ import core from '@actions/core' import os from 'os' -import octokit from 'octokit@2.0.14' +import octokit from 'octokit' // Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage const github = (new octokit({ auth: process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN })).rest