Update workflow to remove pre-script nx affected
This commit is contained in:
parent
bfdb1e0b62
commit
47f1f73582
2
.github/workflows/ipfs.yml
vendored
2
.github/workflows/ipfs.yml
vendored
@ -25,4 +25,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 16.14.0
|
node-version: 16.14.0
|
||||||
- name: Run deploy for affected sites
|
- name: Run deploy for affected sites
|
||||||
run: yarn nx print-affected --base=origin/master~1 --head=origin/master --select=projects | ./tools/ipfs-deploy.js
|
run: ./tools/ipfs-deploy.js
|
||||||
|
@ -33,6 +33,11 @@ function getFleekLastBuildCommit(siteId) {
|
|||||||
return commit;
|
return commit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Triggers a Fleek build of the latest code via GraphQL
|
||||||
|
* @param {String} siteId
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
function triggerDeploy(siteId) {
|
function triggerDeploy(siteId) {
|
||||||
const curl = `curl 'https://api.fleek.co/graphql' --silent -X POST -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Authorization: ${process.env['FLEEK_API_KEY']}' --data-raw '{"query":"mutation {triggerDeploy(commit: \\"HEAD\\", siteId: \\"${siteId}\\"){status}}","variables":null}'`;
|
const curl = `curl 'https://api.fleek.co/graphql' --silent -X POST -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Authorization: ${process.env['FLEEK_API_KEY']}' --data-raw '{"query":"mutation {triggerDeploy(commit: \\"HEAD\\", siteId: \\"${siteId}\\"){status}}","variables":null}'`;
|
||||||
const fleekRes = execSync(curl);
|
const fleekRes = execSync(curl);
|
||||||
|
Loading…
Reference in New Issue
Block a user