Sushi - Philadelphia Roll #893
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: Publish recipe | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency | |
concurrency: | |
group: publish-recipe-${{ github.event.issue.number }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
issues: | |
types: [labeled] | |
jobs: | |
build: | |
name: Run python script | |
runs-on: ubuntu-latest | |
if: contains(github.event.issue.labels.*.name,'β Trigger Publishing') | |
steps: | |
- name: Check-out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install Python dependencies | |
run: pip install -Uq PyGithub | |
- name: Generate recipe markdown file | |
run: python .github/scripts/publishrecipe.py | |
env: | |
CONTEXT_GITHUB: ${{ toJson(github) }} |