Skip to content

Commit ce06d8a

Browse files
committed
fix: adds test workflow
1 parent 78d4e23 commit ce06d8a

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Update Notion Statuses
2+
3+
on: [push]
4+
5+
jobs:
6+
notion_update_job:
7+
runs-on: ubuntu-latest
8+
name: Update Notion Task
9+
steps:
10+
# To use this repository's private action,
11+
# you must check out the repository
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Update Notion Task
15+
uses: ./update_notion # Uses an action in the root directory
16+
id: update_notion
17+
with:
18+
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
19+
NOTION_DATABASE_TOKEN: ${{ secrets.NOTION_DATABASE_TOKEN }}

update_notion/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ async function _updateNotionStatuses (branch) {
4646
})
4747

4848
const repositoryName = GITHUB_REPOSITORY.split('/').pop()
49+
console.log(repositoryName)
4950

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

0 commit comments

Comments
 (0)