Learn Python in One Day By Jamie Chan (100%) #64
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: "Bookshelf Action: New Issue" | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
bookshelf-action: | |
name: Bookshelf Action | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run Bookshelf Action | |
uses: AnandChowdhary/bookshelf-action@HEAD | |
with: | |
command: "onNewIssue" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Delay for 10 seconds | |
if: github.repository == 'AnandChowdhary/books' | |
run: sleep 10 | |
- name: Dispatch AnandChowdhary/everything update | |
if: github.repository == 'AnandChowdhary/books' | |
uses: benc-uk/[email protected] | |
with: | |
repo: AnandChowdhary/everything | |
workflow: api.yml | |
token: ${{ secrets.WORKFLOW_DISPATCH_TOKEN }} |