👷 Multiline output #141
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: Export tasks | |
on: | |
push: | |
# branches: | |
# - main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
steps: | |
- run: | | |
sudo apt-get update | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# run export_tasks.py and store output | |
- id: export_tasks | |
run: | | |
{ | |
echo 'payload<<XXX_MULTI_LINE_MARKER_XXX' | |
python scripts/export_tasks.py | |
echo 'XXX_MULTI_LINE_MARKER_XXX' | |
} >> $GITHUB_OUTPUT | |
- name: Debug | |
run: echo "${{ steps.export_tasks.outputs.payload }}" | |
# Dispatch to huggingface/huggingface.js repo | |
- name: Dispatch to huggingface/huggingface.js | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.REPO_DISPATCH_TOKEN }} | |
repository: huggingface/huggingface.js | |
event-type: export-tasks | |
client-payload: ${{ steps.export_tasks.outputs.payload }} |