Skip to content

Commit

Permalink
Use GITHUB_WORKSPACE to access files
Browse files Browse the repository at this point in the history
  • Loading branch information
debugger22 committed Aug 11, 2020
1 parent 2ab6702 commit 2daf0ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Read Django migration files content.
steps:
- name: Read migrations
id: migrations
uses: komorebitech/read-migration-files-action@v1.3
uses: komorebitech/read-migration-files-action@v1.4
with:
files: '["/migrations/001_initial.py", "/migrations/002_auto_2020_08_11_545462.py"]'
- name: Echo migrations
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const main = async () => {

if(filePath.includes("migrations")){
output += `========================== ${filePath} ==========================\n\n`;
const content = await fs.readFile(filePath, 'utf8');
const content = await fs.readFile(process.env.GITHUB_WORKSPACE + "/" + filePath, 'utf8');
output += content + "\n\n";

}
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const main = async () => {

if(filePath.includes("migrations")){
output += `========================== ${filePath} ==========================\n\n`;
const content = await fs.readFile(filePath, 'utf8');
const content = await fs.readFile(process.env.GITHUB_WORKSPACE + "/" + filePath, 'utf8');
output += content + "\n\n";

}
Expand Down

0 comments on commit 2daf0ef

Please sign in to comment.