We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fcdb8f commit a5d73efCopy full SHA for a5d73ef
update_notion/index.js
@@ -6,8 +6,13 @@ const Notion = require('./../utils/notion')
6
try {
7
const {
8
GITHUB_REF,
9
+ GITHUB_REPOSITORY,
10
} = process.env
11
12
+ const repositoryName = GITHUB_REPOSITORY.split('/').pop()
13
+
14
+ console.log(repositoryName)
15
16
if (GITHUB_REF === 'refs/heads/master') {
17
_updateNotionStatuses('master')
18
} else if (GITHUB_REF === 'refs/heads/staging') {
@@ -46,7 +51,6 @@ async function _updateNotionStatuses (branch) {
46
51
})
47
52
48
53
const repositoryName = GITHUB_REPOSITORY.split('/').pop()
49
- console.log(repositoryName)
50
54
55
// Get most recent commit to branch
56
const { data } = await octokit.rest.repos.getCommit({
0 commit comments