Skip to content

Commit

Permalink
fixed bad reference to actions/core
Browse files Browse the repository at this point in the history
  • Loading branch information
rimonhanna committed Jun 30, 2020
1 parent 8ee05b2 commit 5480e46
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-P ubuntu-latest=nektos/act-environments-ubuntu:18.04
-v
13 changes: 10 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,26 @@ jobs:
steps:
- name: "Checkout source code"
uses: "actions/checkout@v2"
with:
ref: ${{ github.ref }}
- name: "cat package.json"
run: cat ./package.json
- name: "Setup Node.js"
uses: "actions/setup-node@v1"
with:
node-version: 12
- name: "Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
id: version_bump_and_create_tag
uses: "rimonhanna/gh-action-bump-version@master"
with:
tag-prefix: ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "cat package.json"
run: cat ./package.json

- name: Upload release notes
if: steps.version_bump_and_create_tag.outputs.TAG
uses: Roang-zero1/github-create-release-action@master
with:
created_tag: ${{ steps.version_bump_and_create_tag.outputs.TAG }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { Toolkit } = require('actions-toolkit')
const { core } = require('actions/core');
const { execSync } = require('child_process')

// Change working directory if user defined PACKAGEJSON_DIR
Expand Down Expand Up @@ -72,6 +71,6 @@ Toolkit.run(async tools => {
tools.log.fatal(e)
tools.exit.failure('Failed to bump version')
}
core.setOutput('TAG', newVersion);
Toolkit.setOutput('TAG', newVersion);
tools.exit.success('Version bumped!')
})

0 comments on commit 5480e46

Please sign in to comment.