Skip to content

Commit

Permalink
Try using github.context.sha
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranayub committed Jul 5, 2020
1 parent 77fb684 commit 845ed4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const core = require("@actions/core");
const github = require("@actions/github");
const axios = require("axios");

function getNetlifyUrl(url) {
Expand Down Expand Up @@ -26,7 +27,7 @@ const waitForUrl = async (url, MAX_TIMEOUT) => {
const run = async () => {
try {
const netlifyToken = process.env.NETLIFY_TOKEN;
const commitSha = process.env.GITHUB_SHA;
const commitSha = github.context.sha;
const MAX_TIMEOUT = Number(core.getInput("max_timeout")) || 60;
const siteName = core.getInput("site_name");
if (!netlifyToken) {
Expand Down

0 comments on commit 845ed4f

Please sign in to comment.