Skip to content

Workflow file for this run

name: Publish content before merging
on:
push:
# to be changed to 'main'
branches: ['publish-article-pipeline']
jobs:
check-unpublished:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Should publish
id: should-publish
run: |
echo "should-publish=$([[ -d "content/posts/unpublished" ]] && echo true || echo false)" >> $GITHUB_OUTPUT
echo "should-publish=$([[ -d "content/posts/unpublished" ]] && echo true || echo false)"
publish:
runs-on: ubuntu-latest
needs: check-unpublished
steps:
- run: echo ${{needs.check-unpublished.outputs.should-publish}}