Skip to content

Commit

Permalink
chore: update nightly docs (#151)
Browse files Browse the repository at this point in the history
* chore: update nightly docs

* cleanup update script

---------
Co-authored-by: sarahschwartz <58856580+sarahschwartz@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Jan 5, 2024
1 parent c686cbc commit 316dadf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/nightly/fuelup
Submodule fuelup updated 1 files
+7 −1 src/download.rs
4 changes: 2 additions & 2 deletions scripts/update-latest/index.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { checkIfNightlyIsNew } from './checkNightly.mjs';
import { setup } from './setup.mjs';
import { setupUser } from './gitUtils.mjs';
import { updateNightly } from './updateNightly.mjs';

main();

async function main() {
await setup();
await setupUser();
console.log('GETTING NEW VERSIONS');
const newVersions = await checkIfNightlyIsNew();
console.log('GOT NEW VERSIONS', newVersions);
Expand Down
6 changes: 0 additions & 6 deletions scripts/update-latest/setup.mjs

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/update-latest/updateNightly.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
switchToNewBranch,
switchToExistingBranch,
updateSubmodule,
checkoutVersion,
checkDiff,
Expand All @@ -13,9 +12,6 @@ import {
} from './gitUtils.mjs';

export async function updateNightly(newVersions) {
// fuelup checkout master
await switchToExistingBranch('master', 'docs/nightly/fuelup');

// create a new branch of docs-hub
const date = new Date();
const day = date.getDate();
Expand Down Expand Up @@ -52,7 +48,6 @@ async function updateSubmodules(newVersions) {
'docs/nightly/fuel-graphql-docs',
'docs/guides/docs/migration-guide/breaking-change-log',
];
console.log('GOING TO UPDATE REGARDLESS');
await Promise.all(
updateRegardless.map(async (sub) => {
console.log('UPDATING SUB:', sub);
Expand Down

0 comments on commit 316dadf

Please sign in to comment.