Skip to content

Commit

Permalink
feat: Add token environment
Browse files Browse the repository at this point in the history
  • Loading branch information
colinjfw committed Aug 22, 2019
1 parent aaf3a34 commit dd13bd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ inputs:
state:
description: 'Deployment status to set the action as'
default: 'pending'
token:
description: 'Github repository token'
log-url:
description: 'Log url location'
description:
description: 'Descriptive message about the deployment state'
runs:
using: 'node12'
main: 'index.js'
env:
GITHUB_TOKEN: "${{ github.token }}"
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const github = require("@actions/github");

async function run() {
try {
const token = core.getInput("token", {required: true});
const token = process.env.GITHUB_TOKEN;
const state = core.getInput("state", {required: true});
const log_url = core.getInput("log-url", {required: false});
const description = core.getInput("description", {required: false});
Expand Down

0 comments on commit dd13bd9

Please sign in to comment.