Skip to content

Bump Scriban from 5.10.0 to 5.12.0 #438

Bump Scriban from 5.10.0 to 5.12.0

Bump Scriban from 5.10.0 to 5.12.0 #438

Workflow file for this run

name: Verify follow-up actions required
permissions:
pull-requests: write
on:
# workflow_dispatch:
pull_request:
branches: [ main ]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2 #fails without this
- id: git_diff
name: Compare to previous version
shell: pwsh
run: |
$GitDiff = & ./tools/Get-Diff.ps1
$GitDiff.ChangedFiles >> $Env:GITHUB_STEP_SUMMARY
# Write all folders we required in follow-up actions
$AssetsChanged = $GitDiff.Assets.ToString().ToLower()
Write-Host "AssetsChanged=$AssetsChanged"
Write-Output "AssetsChanged=$AssetsChanged" >> $Env:GITHUB_OUTPUT
# Consider this
# - name: Verify if images in next-gen format are present
# if: ${{ fromJSON(steps.git_diff.outputs.AssetsChanged) }}
# shell: pwsh
# run: |
# ./tools/Convert-WebImage.ps1 -ToolVersion libwebp-1.3.2-linux-x86-64 | Out-Null
# # $GitStatus = git status --short
# # $GitStatus
- if: ${{ fromJSON(steps.git_diff.outputs.AssetsChanged) }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: assets
recreate: true
message: |
Detected assets folder change for ${{ github.sha }}
# Consider this...
# seo_job:
# needs: [ build_and_deploy_job ]
# if: needs.build_and_deploy_job.outputs.docs_changed && github.event_name != 'pull_request'
# uses: ./.github/workflows/seo.yml