mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-13 00:38:54 +08:00
Merge pull request #1809 from blockstack/fix/update-reference
fix: update auto generated file for reference
This commit is contained in:
4
.github/actions/docsgen/Dockerfile.docsgen
vendored
4
.github/actions/docsgen/Dockerfile.docsgen
vendored
@@ -10,7 +10,7 @@ RUN cargo build
|
||||
|
||||
RUN mkdir /out
|
||||
|
||||
RUN /src/target/debug/blockstack-core docgen > /out/clarityRef.json
|
||||
RUN /src/target/debug/blockstack-core docgen > /out/clarity-reference.json
|
||||
|
||||
FROM scratch AS export-stage
|
||||
COPY --from=build /out/clarityRef.json /
|
||||
COPY --from=build /out/clarity-reference.json /
|
||||
|
||||
8
.github/workflows/docs-pr.yml
vendored
8
.github/workflows/docs-pr.yml
vendored
@@ -47,14 +47,14 @@ jobs:
|
||||
git config user.name "PR Robot"
|
||||
git fetch --unshallow
|
||||
git checkout -b $ROBOT_BRANCH
|
||||
cp ../docs-output/clarityRef.json ./_data/clarityRef.json
|
||||
cp ../docs-output/clarity-reference.json ./src/_data/clarity-reference.json
|
||||
if $(git diff --quiet --exit-code); then
|
||||
echo "No clarityRef.json changes, stopping"
|
||||
echo "No clarity-reference.json changes, stopping"
|
||||
echo "::set-output name=open_pr::0"
|
||||
else
|
||||
git remote add robot https://github.com/$ROBOT_OWNER/$ROBOT_REPO
|
||||
git add _data/clarityRef.json
|
||||
git commit -m "auto: update clarityRef.json from stacks-blockchain@${GITHUB_SHA}"
|
||||
git add src/_data/clarity-reference.json
|
||||
git commit -m "auto: update clarity-reference.json from stacks-blockchain@${GITHUB_SHA}"
|
||||
git push robot $ROBOT_BRANCH
|
||||
echo "::set-output name=open_pr::1"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user