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

use right id maybe

use right id maybe #15

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:
- uses: actions/checkout@v4
- run: make
- id: prob
run: |
make problems PROBLEMS=${{ env.FN_PROB }}
echo "ids=$(cat ${{ env.FN_PROB }})" >> $GITHUB_OUTPUT
- run: echo "${{ steps.prob.outputs.ids }}"
submit:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
pid: ${{ steps.build.outputs.matrix }} # run once for each known problem id

Check failure on line 30 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: 30, Col: 14): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.build.outputs.matrix .github/workflows/submit.yaml (Line: 30, Col: 14): Unexpected value '${{ steps.build.outputs.matrix }}'
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 }}'