List pull requests #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |