Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 587762c

Browse files
committed
Fix misused environment variable name
Action was attempting to find the GitHub home directory using the `GITHUB_HOME` environment variable, but the correct one is simple `HOME`. A simple change was made to the Test Run workflow in which the image is pushed on behalf of matootie, instead of a value specified in a secret. .github/workflows/test.yml | 2 +- dist/index.js | 2 +- index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
1 parent f0c0947 commit 587762c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
- name: Run the Action
1515
uses: ./
1616
with:
17-
username: ${{ secrets.USERNAME }}
17+
username: matootie
1818
personalAccessToken: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ async function run() {
977977

978978
// Set the workspace directory.
979979
const workspace = process.env['GITHUB_WORKSPACE'];
980-
const home = process.env['GITHUB_HOME'];
980+
const home = process.env['HOME'];
981981

982982
// Download and extract the desired Docker archive.
983983
const dockerVersion = core.getInput('dockerVersion', { required: true });

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function run() {
3737

3838
// Set the workspace directory.
3939
const workspace = process.env['GITHUB_WORKSPACE'];
40-
const home = process.env['GITHUB_HOME'];
40+
const home = process.env['HOME'];
4141

4242
// Download and extract the desired Docker archive.
4343
const dockerVersion = core.getInput('dockerVersion', { required: true });

0 commit comments

Comments
 (0)