mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2024-09-20 02:50:04 +07:00
cleanup dependencies
This commit is contained in:
parent
705426c441
commit
31738a03da
63
.github/workflows/actions.yml
vendored
63
.github/workflows/actions.yml
vendored
@ -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
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
import core from '@actions/core'
|
import core from '@actions/core'
|
||||||
import os from 'os'
|
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
|
// 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
|
const github = (new octokit({ auth: process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN })).rest
|
||||||
|
Loading…
Reference in New Issue
Block a user