π¨ style(nav): remove bg from mobile menu links #66
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: </body> | |
| replace: <!-- Insert MLH Banner Code Here --> </body> | |
| 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 |