mirror of
https://github.com/selfxyz/self.git
synced 2026-01-08 22:28:11 -05:00
* fix addhaar typo * consolidate mobile app links and add tests * fix caching issues for pipelines * fix gitleaks * update binary merkle root.circom package source * fix cache * update path * rename lockfile * fix qrcode error * fix mobile ci tests and prettier * fix qr code typing * fix qrcode pipelines * fix integration test
26 lines
767 B
YAML
26 lines
767 B
YAML
name: Compute .yarnrc.yml hash
|
|
|
|
description: Compute a stable hash for .yarnrc.yml to use in cache keys.
|
|
|
|
outputs:
|
|
hash:
|
|
description: Hash of .yarnrc.yml (or "no-yarnrc" if the file is missing)
|
|
value: ${{ steps.compute-yarnrc-hash.outputs.hash }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Compute .yarnrc.yml hash
|
|
id: compute-yarnrc-hash
|
|
shell: bash
|
|
run: |
|
|
if [ -f .yarnrc.yml ]; then
|
|
if command -v shasum >/dev/null 2>&1; then
|
|
echo "hash=$(shasum -a 256 .yarnrc.yml | awk '{ print $1 }')" >> "$GITHUB_OUTPUT"
|
|
else
|
|
echo "hash=$(sha256sum .yarnrc.yml | awk '{ print $1 }')" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
else
|
|
echo "hash=no-yarnrc" >> "$GITHUB_OUTPUT"
|
|
fi
|