From e9e5f8f35eaf9e6e574b024bf314fca8b2277424 Mon Sep 17 00:00:00 2001 From: Mikel Matticoli Date: Wed, 15 Dec 2021 01:58:48 -0500 Subject: [PATCH 1/2] Add mobirise postproc action --- .github/workflows/mobirise-postproc.yml | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/mobirise-postproc.yml diff --git a/.github/workflows/mobirise-postproc.yml b/.github/workflows/mobirise-postproc.yml new file mode 100644 index 0000000..533fb68 --- /dev/null +++ b/.github/workflows/mobirise-postproc.yml @@ -0,0 +1,44 @@ +name: Add MLH Banner +on: [push] +jobs: + Add-MLH-Banner: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v2 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: Remove Mobirise Footer + uses: jacobtomlinson/gha-find-replace@2.0.0 + with: + find: "display: flex" + replace: "display: none" + regex: false + include: "index.html" + - name: Setup git and commit remove footer + run: | + git config --global user.name 'matticoli' + git config --global user.email 'matticoli@users.noreply.github.com' + git commit -am "Remove mobirise footer" + git push + - name: Add MLH Banner + uses: jacobtomlinson/gha-find-replace@2.0.0 + with: + find: + replace: Major League Hacking 2022 Hackathon Season + regex: false + include: "index.html" + - name: Commit add banner + run: | + git commit -am "Added MLH Banner" + countbadge=$(cat index.html | grep -o mlh-trust-badge | wc -l) + if [ $countbadge -lt 3 ] + then + echo "Banner was not present, pushing change" + git push + else + echo "Banner already present, not pushing changes" + fi -- 2.43.5 From dc78807fe98dd36771f316176df1d44575eb94ae Mon Sep 17 00:00:00 2001 From: matticoli Date: Wed, 15 Dec 2021 06:59:09 +0000 Subject: [PATCH 2/2] Remove mobirise footer --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 419a752..ee8d23e 100644 --- a/index.html +++ b/index.html @@ -382,7 +382,7 @@ - + Major League Hacking 2022 Hackathon Season -- 2.43.5