Skip to content

Commit a5d73ef

Browse files
committed
ci: adds console log to verify env
1 parent 0fcdb8f commit a5d73ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

update_notion/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ const Notion = require('./../utils/notion')
66
try {
77
const {
88
GITHUB_REF,
9+
GITHUB_REPOSITORY,
910
} = process.env
1011

12+
const repositoryName = GITHUB_REPOSITORY.split('/').pop()
13+
14+
console.log(repositoryName)
15+
1116
if (GITHUB_REF === 'refs/heads/master') {
1217
_updateNotionStatuses('master')
1318
} else if (GITHUB_REF === 'refs/heads/staging') {
@@ -46,7 +51,6 @@ async function _updateNotionStatuses (branch) {
4651
})
4752

4853
const repositoryName = GITHUB_REPOSITORY.split('/').pop()
49-
console.log(repositoryName)
5054

5155
// Get most recent commit to branch
5256
const { data } = await octokit.rest.repos.getCommit({

0 commit comments

Comments
 (0)