Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

rm $

rm $ #19

Workflow file for this run

name: POST submission
on:
push:
branches: [ main ]
workflow_dispatch:
branches: [ main ]
env:
FN_PROB: "problems.txt"
jobs:
build:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.prob.outputs.ids }}
steps:
- id: prob
run: |

Check failure on line 19 in .github/workflows/submit.yaml

View workflow run for this annotation

GitHub Actions / POST submission

Invalid workflow file

The workflow is not valid. .github/workflows/submit.yaml (Line: 19, Col: 14): Unrecognized named-value: 'plain_ids'. Located at position 8 within expression: toJSON(plain_ids)
make && make problems PROBLEMS=${{ env.FN_PROB }}
echo "plain_ids=$(cat ${{ env.FN_PROB }})"
echo "ids=${{ toJSON(plain_ids) }}" >> $GITHUB_OUTPUT
- run: echo "${{ steps.prob.outputs.ids }}"
# submit:
# needs: build
# runs-on: ubuntu-latest
# strategy:
# matrix:
# pid: ${{ fromJSON(steps.build.outputs.matrix) }}
# steps:
# - run: |
# echo "${{ matrix.pid }}"
# steps:
# - id: content
# run: echo "body=$(cat build/${{ matrix.pid }}.txt)" >> $GITHUB_OUTPUT
# - name: post solution
# run: |
# echo "${{ matrix.pid }}"
# echo "${{ steps.content.outputs.body }}"
# curl --location '${{ vars.BASE_URL }}submission' \
# --header ${{ secrets.TOKEN }} \
# --header 'Content-Type: text/plain' \
# --data '${{ steps.content.outputs.body }}'