Skip to content

fix(deps): update github.com/sigstore/protobuf-specs digest to d181467 - autoclosed #1026

fix(deps): update github.com/sigstore/protobuf-specs digest to d181467 - autoclosed

fix(deps): update github.com/sigstore/protobuf-specs digest to d181467 - autoclosed #1026

name: Actions pre submits
on:
pull_request:
branches: [main]
workflow_dispatch:
permissions: read-all
jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set Node.js 16
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 16
- name: Rebuild the dist/ directory
working-directory: actions/installer
run: make package
- name: Compare the expected and actual dist/ directories
working-directory: actions/installer
id: diff
run: |
set -euo pipefail
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
# If index.js was different from expected, upload the expected version as an artifact
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: dist/