Skip to content

Bump hashicorp/azurerm from 4.10.0 to 4.14.0 in /terraform #504

Bump hashicorp/azurerm from 4.10.0 to 4.14.0 in /terraform

Bump hashicorp/azurerm from 4.10.0 to 4.14.0 in /terraform #504

---
name: create-favicon
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
- .github/workflows/create-favicon.yml
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions:
id-token: write
contents: write
pull-requests: write
actions: write
jobs:
create-favicons:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- name: get-profile-pic
run: |
wget https://github.com/${{ github.repository_owner }}.png -O docs/img/profile-picture.png
- name: convert-profile-pic
run: |
if [[ `git status --porcelain docs/img/profile-picture.png` ]]; then
convert docs/img/profile-picture.png -alpha off -resize 256x256 -define icon:auto-resize="256,128,96,64,48,32,16" docs/favicon.ico
fi
- name: Build Docs
env:
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ `git status --porcelain docs/img/profile-picture.png` ]]; then
pip install --upgrade pip
pip install -r requirements.txt
mkdocs build
fi
- name: Push changes
env:
BRANCH: ${{github.event.pull_request.head.ref}}
run: |
if [[ `git status --porcelain docs/img/profile-picture.png` ]]; then
git config user.name "$(git log -n 1 --pretty=format:%an)"
git config user.email "$(git log -n 1 --pretty=format:%ae)"
git add docs/img/profile-picture.png
git add docs/favicon.ico
git commit -m "docs(favicon.ico): creating new favicon"
git config pull.rebase false
git pull
git push --force-with-lease
fi