Skip to content

test: valid manifest control #1995

test: valid manifest control

test: valid manifest control #1995

# AUTO-GENERATED by cascade - DO NOT EDIT MANUALLY
# Regenerate with: cascade generate-workflow --config .github/manifest.yaml
name: Cascade Drift Check
on:
pull_request:
permissions:
contents: read
concurrency:
group: "cascade-drift-check-${{ github.event.pull_request.number }}"
cancel-in-progress: true
jobs:
drift-check:
name: Workflow Drift Check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Setup CLI
uses: stablekernel/cascade/.github/actions/setup-cli@3742e04377b952a263bb48a0a0bb5905c253d603 # v1.1.2-rc.0
with:
version: v1.1.2-rc.0
token: ${{ github.token }}
- name: Check for workflow drift
run: |
set +e
cascade verify --config .github/manifest.yaml > drift-report.txt 2>&1
echo $? > drift-exit.txt
set -e
cat drift-report.txt
- name: Upload drift result
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cascade-drift-result
path: |
drift-report.txt
drift-exit.txt
retention-days: 1
- name: Fail on drift
run: |
CODE=$(cat drift-exit.txt)
if [ "$CODE" != "0" ]; then
echo "Workflows are out of sync with the manifest."
echo "Run: cascade generate-workflow --config .github/manifest.yaml --force"
echo "Then commit the regenerated workflows."
fi
exit "$CODE"