Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bling-yshs committed Apr 21, 2024
1 parent 3e93e00 commit 2011bcd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ async function run() {
const octokit = github.getOctokit(result.token)
// Loop through each path in result.path
for (const path of result.path) {
core.info(`📁:${typeof path}`)
if (path === '') {
core.info(`📁:${typeof path}`)
} else {
core.info(`no path: ${path}`)
}
// Make a request to the GitHub API
const response = await octokit.request(
`GET /repos/{owner}/{repo}/contents/{path}?ref=${result.branchName}`,
Expand Down

0 comments on commit 2011bcd

Please sign in to comment.