Skip to content

Commit

Permalink
Fix publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirostar committed Apr 19, 2023
1 parent 0ace00d commit 8c83371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
run: gradle build

- name: Upload release assets
uses: actions/github-script@v2
uses: actions/github-script@v6
with:
github-token: ${{github.token}}
script: |
console.log('environment', process.versions);
const fs = require('fs').promises;
const fs = require('fs');
const { repo: { owner, repo }, sha } = context;
console.log({ owner, repo, sha });
Expand All @@ -66,7 +66,7 @@ jobs:
repo,
release_id: steps.get_release.outputs.id,
name: releaseAssetName,
data: await fs.readFile(`./${file}`)
data: await fs.promises.readFile(`./${file}`)
});
});
}
Expand Down

0 comments on commit 8c83371

Please sign in to comment.