1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-05-06 21:49:33 +02:00
build-push-action/.github/workflows/verify-build.yml
Aditya Maru 0f99a0b1c7 src: start sending get request with query params
We are incorrectly using formData in a get request. To move
away from this we send both query params and formData until
the server is fully upgraded. After which we can stop sending
formData.
2024-12-09 13:01:35 -05:00

38 lines
799 B
YAML

name: Verify Build Output
on:
pull_request:
branches:
- main
- master
jobs:
verify-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
- name: Install dependencies
run: |
npm ci
- name: Build
run: npm run build
- name: Check for changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "::error::Build generated new changes. Please commit the generated files."
git status
git diff
exit 1
fi