Skip to content

[Notion] Add new page to top of database #59060

[Notion] Add new page to top of database

[Notion] Add new page to top of database #59060

Workflow file for this run

name: Issue Bot
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
jobs:
issue_bot:
name: Issue Bot
if: ${{ !github.event.issue.pull_request }} && github.repository == 'raycast/extensions'
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup Bot
run: bun create github.com/raycast/github-action-bot
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.RAYCAST_BOT_API_ACCESS_TOKEN }}
- name: Run bot
run: |
cd github-action-bot
bun run index.ts
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.RAYCAST_BOT_API_ACCESS_TOKEN }}
SCRIPT: "scripts/bots/issue-bot.ts"
- name: Notify Failure to Slack
if: failure()
uses: raycast/github-actions/slack-send@master
with:
webhook: ${{ secrets.SLACK_RELEASE_CHANNEL_WEBHOOK_URL }}
color: "danger"
text: |
:no_entry_sign: ${env.GITHUB_WORKFLOW} has failed
<${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}|Action logs> | <${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/commit/${ env.GITHUB_SHA }|Commit: ${ env.GITHUB_SHA.substr(0,8) }>