Skip to content

Commit

Permalink
add manual workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kiy0taka committed Jul 6, 2023
1 parent b7d4ac4 commit 3f201d0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: List pull requests

on:
workflow_dispatch:
inputs:
start_date:
description: 'Start date (yyyy/MM/dd)'
# Default value if no value is explicitly provided
default: ''
# Input has to be provided for the workflow to run
required: true
# The data type of the input
type: string

jobs:
list:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@master

- name: Setup npm
run: npm install

- name: Run script
env:
START_DATE: ${{ inputs.start_date }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node app.js
2 changes: 0 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
const SLACK_API_TOKEN = process.env.SLACK_API_TOKEN;
const SLACK_CHANNEL = process.env.SLACK_CHANNEL;

const GitHub = require('github-api');
const SlackClient = require('@slack/client').WebClient;
Expand Down

0 comments on commit 3f201d0

Please sign in to comment.