Skip to content
Snippets Groups Projects
Commit b9dd64ca authored by poka's avatar poka
Browse files

Ci auto generate endpoints

parent 6ddc65b2
No related branches found
No related tags found
1 merge request!28Ci auto generate endpoints
...@@ -44,3 +44,24 @@ pages: ...@@ -44,3 +44,24 @@ pages:
expire_in: 1 week expire_in: 1 week
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
endpoint_check:
image: node:20-bullseye
stage: build
script:
- |
if git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA | grep -q "endpoints.json"; then
npm install
node graphql/generateEndpoints.js
git config --global user.email "ci@duniter.org"
git config --global user.name "CI Bot"
git add -A
git commit -m "Auto-update generated endpoints"
git push https://gitlab-ci-token:${CI_PUSH_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git HEAD:$CI_COMMIT_REF_NAME
else
echo "No changes in endpoints.json"
fi
rules:
- changes:
- endpoints.json
...@@ -10105,9 +10105,9 @@ ...@@ -10105,9 +10105,9 @@
} }
}, },
"node_modules/buffer": { "node_modules/buffer": {
"version": "5.7.1", "version": "6.0.3",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
"funding": [ "funding": [
{ {
"type": "github", "type": "github",
...@@ -10122,9 +10122,11 @@ ...@@ -10122,9 +10122,11 @@
"url": "https://feross.org/support" "url": "https://feross.org/support"
} }
], ],
"optional": true,
"peer": true,
"dependencies": { "dependencies": {
"base64-js": "^1.3.1", "base64-js": "^1.3.1",
"ieee754": "^1.1.13" "ieee754": "^1.2.1"
} }
}, },
"node_modules/buffer-from": { "node_modules/buffer-from": {
...@@ -22065,6 +22067,29 @@ ...@@ -22065,6 +22067,29 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/sync-fetch/node_modules/buffer": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"dependencies": {
"base64-js": "^1.3.1",
"ieee754": "^1.1.13"
}
},
"node_modules/sync-fetch/node_modules/node-fetch": { "node_modules/sync-fetch/node_modules/node-fetch": {
"version": "2.7.0", "version": "2.7.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment