Skip to content

Commit

Permalink
Fix use of working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Sep 2, 2024
1 parent b693c3f commit 6749d91
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tf-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ jobs:
github-token: ${{ github.token }}
script: |
const fs = require('fs').promises
const plan = JSON.parse(await fs.readFile('tfplan.json', 'utf-8'))
const humanSummary = await fs.readFile('summary.txt', 'utf-8')
const plan = JSON.parse(await fs.readFile('terraform/tfplan.json', 'utf-8'))
const humanSummary = await fs.readFile('terraform/summary.txt', 'utf-8')
let applyLog;
try {
applyLog = await fs.readFile('apply.log', 'utf-8')
applyLog = await fs.readFile('terraform/apply.log', 'utf-8')
} catch {}
function countActions(plan, type) {
Expand All @@ -101,7 +101,7 @@ jobs:
? `${createCount} added, ${updateCount} changed, ${deleteCount} destroyed`
: `${createCount} to add, ${updateCount} to change, ${deleteCount} to destroy`
)
await fs.writeFile("title.txt", title)
await fs.writeFile("terraform/title.txt", title)
const codefence = "```"
const summary = `
Expand Down Expand Up @@ -137,8 +137,8 @@ jobs:
with:
name: tf-summary-${{ matrix.domain }}
path: |
summary.txt
title.txt
terraform/summary.txt
terraform/title.txt
summary:
name: Summary
Expand Down

0 comments on commit 6749d91

Please sign in to comment.