From 8ab021050d0f6962d4c76989bc3f0e64adbe2926 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 17 Jul 2022 20:25:06 -0400 Subject: [PATCH] Autofetch blog posts Signed-off-by: Tommy --- .github/workflows/firebase-hosting-merge.yml | 5 ++++- .github/workflows/firebase-hosting-pull-request.yml | 5 ++++- external-blogs.sh | 4 ++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 02f2c86..9b48cac 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -7,7 +7,7 @@ name: Deploy to Firebase Hosting on merge branches: - main jobs: - build_and_deploy: + Build_and_Deploy: runs-on: ubuntu-latest steps: - name: Checkout @@ -16,6 +16,9 @@ jobs: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + - name: Fecth External Blog + run: ./external-blogs.sh + - name: Hugo setup uses: peaceiris/actions-hugo@v2 with: diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index a276221..b8d1764 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -4,7 +4,7 @@ name: Deploy to Firebase Hosting on PR 'on': pull_request jobs: - build_and_preview: + Build_and_Preview: if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' runs-on: ubuntu-latest steps: @@ -14,6 +14,9 @@ jobs: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + - name: Fecth External Blog + run: ./external-blogs.sh + - name: Hugo setup uses: peaceiris/actions-hugo@v2 with: diff --git a/external-blogs.sh b/external-blogs.sh index dabc4fd..a19e0e9 100755 --- a/external-blogs.sh +++ b/external-blogs.sh @@ -1,6 +1,7 @@ #!/bin/bash #F-Droid Security Analysis +echo "Fetching and Modifying the F-Droid Security Analysis post" rm -rf './content/apps/F-Droid Security Analysis.md' curl https://raw.githubusercontent.com/Wonderfall/wonderfall.github.io/main/content/posts/fdroid-issues.md -o './content/apps/F-Droid Security Analysis.md' sed -i 's/title:.*/title: "F-Droid Security Analysis"/' './content/apps/F-Droid Security Analysis.md' @@ -11,7 +12,9 @@ sed -i '/^tags:.*/a ShowCanonicalLink: true' './content/apps/F-Droid Security An sed -i '/^tags:.*/a canonicalURL: https://wonderfall.dev/fdroid-issues' './content/apps/F-Droid Security Analysis.md' sed -i '/^tags:.*/a author: Wonderfall' './content/apps/F-Droid Security Analysis.md' + #Docker and OCI Hardening +echo "Fetching and Modifying the Docker and OCI Hardening post" rm -rf './content/os/Docker and OCI Hardening.md' curl https://raw.githubusercontent.com/Wonderfall/wonderfall.github.io/main/content/posts/docker-hardening.md -o './content/os/Docker and OCI Hardening.md' sed -i 's/title:.*/title: "Docker and OCI Hardening"/' './content/os/Docker and OCI Hardening.md' @@ -23,6 +26,7 @@ sed -i '/^tags:.*/a canonicalURL: https://wonderfall.dev/docker-hardening/' './c sed -i '/^tags:.*/a author: Wonderfall' './content/os/Docker and OCI Hardening.md' #Securing OpenSSH with FIDO2 +echo "Fetching and Modifying the OpenSSH with FIDO2 Hardening post" rm -rf './content/os/Securing OpenSSH with FIDO2.md' curl https://raw.githubusercontent.com/Wonderfall/wonderfall.github.io/main/content/posts/openssh-fido2.md -o './content/os/Securing OpenSSH with FIDO2.md' sed -i 's/title:.*/title: "Securing OpenSSH with FIDO2"/' './content/os/Securing OpenSSH with FIDO2.md'