mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-10 06:33:06 +08:00
Bumps the github-actions-dependencies group with 2 updates: [hoverkraft-tech/ci-github-nodejs](https://github.com/hoverkraft-tech/ci-github-nodejs) and [hoverkraft-tech/ci-github-common](https://github.com/hoverkraft-tech/ci-github-common). Updates `hoverkraft-tech/ci-github-nodejs` from 0.4.2 to 0.5.1 - [Release notes](https://github.com/hoverkraft-tech/ci-github-nodejs/releases) - [Commits](https://github.com/hoverkraft-tech/ci-github-nodejs/compare/0.4.2...0.5.1) Updates `hoverkraft-tech/ci-github-common` from 0.13.0 to 0.13.2 - [Release notes](https://github.com/hoverkraft-tech/ci-github-common/releases) - [Commits](https://github.com/hoverkraft-tech/ci-github-common/compare/0.13.0...0.13.2) --- updated-dependencies: - dependency-name: hoverkraft-tech/ci-github-nodejs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-common dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 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@v4
|
|
- uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@0.5.1
|
|
|
|
- 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@v4
|
|
with:
|
|
name: dist
|
|
path: dist/
|