Merge into a single job to maintain filesystem
This commit is contained in:
parent
498489e9a2
commit
7294097055
@ -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
|
||||||
@ -47,13 +43,9 @@ jobs:
|
|||||||
echo $files
|
echo $files
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user