Merge into a single job to maintain filesystem

This commit is contained in:
Jack Jackson 2025-02-25 19:34:28 -08:00
parent 498489e9a2
commit 7294097055

View File

@ -16,15 +16,11 @@ jobs:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
# I'd like to use `alpine`, here, but it doesn't have `bash` installed by default. - name: cd into
# It can be installed with `shell: /bin/sh\nrun: apk add --no-cache bash`, but that's a pain. run: cd blogcontent
# In any case, `ubuntu-latest` should already be present, so there shouldn't be extra delay in pulling it.
block-posts-containining-tk: - name: Block posts containing-tk
depends-on: run: |
- checkout
runs-on: ubuntu-latest
steps:
- run: |
# This is necessary because, if `grep ...` doesn't find anything, it will _return_ (not print) a value of 1 # This is necessary because, if `grep ...` doesn't find anything, it will _return_ (not print) a value of 1
# (non-zero return codes indicating errors in Unix - since there are many more ways for something to go wrong # (non-zero return codes indicating errors in Unix - since there are many more ways for something to go wrong
# than there are for it to go right!), and so the `files=` assignment will also return 1, and the whole operation # than there are for it to go right!), and so the `files=` assignment will also return 1, and the whole operation
@ -48,12 +44,8 @@ jobs:
exit 1 # TODO - and alerting via Matrix! exit 1 # TODO - and alerting via Matrix!
fi fi
build-blog: - name: Build blog
depends-on: run: |
- block-posts-containining-tk
runs-on: ubuntu-latest
steps:
- run: |
apt-get update && sudo apt-get install -y hugo git apt-get update && sudo apt-get install -y hugo git
pwd pwd
ls ls