compose-action/.github/workflows/__check-dist.yml
dependabot[bot] c4d1d8e06d
Some checks failed
Internal - Main - Continuous Integration / ci (push) Has been cancelled
Need fix to Issue / main (push) Has been cancelled
Internal - Main - Continuous Integration / release (push) Has been cancelled
Mark stale issues and pull requests / main (push) Has been cancelled
chore(deps): bump the github-actions-dependencies group across 1 directory with 3 updates
Bumps the github-actions-dependencies group with 3 updates in the / directory: [hoverkraft-tech/ci-github-nodejs](https://github.com/hoverkraft-tech/ci-github-nodejs), [hoverkraft-tech/ci-github-common](https://github.com/hoverkraft-tech/ci-github-common) and [actions/create-github-app-token](https://github.com/actions/create-github-app-token).


Updates `hoverkraft-tech/ci-github-nodejs` from 0.10.0 to 0.11.0
- [Release notes](https://github.com/hoverkraft-tech/ci-github-nodejs/releases)
- [Commits](0c281f43dd...5c1010a914)

Updates `hoverkraft-tech/ci-github-common` from 0.22.2 to 0.22.3
- [Release notes](https://github.com/hoverkraft-tech/ci-github-common/releases)
- [Commits](abd5469ef9...95664be4ec)

Updates `actions/create-github-app-token` from 2.0.2 to 2.0.3
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](3ff1caaa28...30bf6253fa)

---
updated-dependencies:
- dependency-name: hoverkraft-tech/ci-github-nodejs
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions-dependencies
- dependency-name: hoverkraft-tech/ci-github-common
  dependency-version: 0.22.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions-dependencies
- dependency-name: actions/create-github-app-token
  dependency-version: 2.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-02 07:47:40 +02:00

40 lines
1.2 KiB
YAML

name: Internal - Checks for dist
on:
workflow_call:
permissions:
contents: read
jobs:
check-dist:
name: Check dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@5c1010a9146952f724730bf79ba8e2e40ba8e474 # 0.11.0
- name: Build dist/ Directory
id: package
run: npm run package
# This will fail the workflow if the PR wasn't created by Dependabot.
- name: Compare Directories
id: diff
run: |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after package. See status below:"
git diff --ignore-space-at-eol --text dist/
exit 1
fi
# If `dist/` was different than expected, and this was not a Dependabot
# PR, upload the expected version as a workflow artifact.
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
name: Upload Artifact
id: upload
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: dist
path: dist/