Skip to content

Tweak actions example #5

Tweak actions example

Tweak actions example #5

name: Publish on push to main
on:
push:
branches:
- main
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepend timestamp to index.html
run: |
echo "Published at: $(date)<br/>" | cat - ./public/index.html > temp && mv temp ./public/index.html
publish:
needs: prepare
uses: probcomp/gen-website-private/.github/workflows/publish_private_website.yml@main

Check failure on line 19 in .github/workflows/publish_private_website_example.yml

View workflow run for this annotation

GitHub Actions / Publish on push to main

Invalid workflow file

The workflow is not valid. In .github/workflows/publish_private_website_example.yml (Line: 19, Col: 11): Error from called workflow probcomp/gen-website-private/.github/workflows/publish_private_website.yml@main (Line: 37, Col: 12): Unexpected symbol: '?'. Located at position 24 within expression: inputs.subdomain == '' ? github.event.repository.name : inputs.subdomain
with:
website_dir: './public'