From f25b9f12aee0f58e1f910ce2df0d583b93917157 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Wed, 18 Dec 2024 16:59:16 -0500 Subject: [PATCH 1/2] test correct name in script --- .github/workflows/devportal-update.yml | 2 -- README.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index 86f4dd81..43a33877 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -86,8 +86,6 @@ jobs: cat devportal/docs/02-developers/06-integrate/01-rif-relay/integrate.md # Process setup section - TEMP_FILE="temp_installation-requirements.md" - TRANSFORMED_FILE="transformed/installation-requirements.md" # Remove the unwanted first lines from section (title) tail -n +1 docs/installation-requirements.md > temp_installation-requirements.md echo "---" > transformed/installation-requirements.md diff --git a/README.md b/README.md index 516e38e8..81f1169f 100644 --- a/README.md +++ b/README.md @@ -42,4 +42,4 @@ Each module has instructions for development and usage. * Please refer to the Rootstock Contribution Guidelines for more information on how to contribute to this project. ## License: -MIT License - Copyright (c) 2023 Rootstock +MIT License - Copyright (c) 2023 Rootstock \ No newline at end of file From 4c42cdcdaec61d00384e3a2fe0a5542a4c422fbc Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Wed, 18 Dec 2024 17:03:50 -0500 Subject: [PATCH 2/2] test correct name in script --- .github/workflows/devportal-update.yml | 43 ++++++++++---------------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index 43a33877..7dbf10e6 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -37,38 +37,29 @@ jobs: mkdir -p transformed # Remove the unwanted first lines from README.md - TEMP_FILE="temp_README.md" - tail -n +1 README.md > ${TEMP_FILE} + tail -n +1 README.md > temp_README.md # Remove the lines between - # awk '//{next} {print}' README.md > ${TEMP_FILE} + # awk '//{next} {print}' README.md > temp_README.md # Process main README.md - TRANSFORMED_FILE="transformed/README.md" - echo "---" > ${TRANSFORMED_FILE} - echo "sidebar_label: Overview" >> ${TRANSFORMED_FILE} - echo "sidebar_position: 100" >> ${TRANSFORMED_FILE} - echo "title: RIF Relay - Overview" >> ${TRANSFORMED_FILE} - echo "description: 'RIF Relay Overview.'" >> ${TRANSFORMED_FILE} - echo "tags: [rif, envelope, relay, integrate, integration guide]" >> ${TRANSFORMED_FILE} - echo "---" >> ${TRANSFORMED_FILE} - echo "" >> ${TRANSFORMED_FILE} - echo ":::info[Note]" >> ${TRANSFORMED_FILE} - echo "If you wish to suggest changes on this document, please open a PR on the [Rif Relay Repository](https://github.com/rsksmart/rif-relay.git)" >> ${TRANSFORMED_FILE} - echo ":::" >> ${TRANSFORMED_FILE} - echo "" >> ${TRANSFORMED_FILE} - cat ${TEMP_FILE} >> ${TRANSFORMED_FILE} + echo "---" > transformed/README.md + echo "sidebar_label: Overview" >> transformed/README.md + echo "sidebar_position: 100" >> transformed/README.md + echo "title: RIF Relay - Overview" >> transformed/README.md + echo "description: 'RIF Relay Overview.'" >> transformed/README.md + echo "tags: [rif, envelope, relay, integrate, integration guide]" >> transformed/README.md + echo "---" >> transformed/README.md + echo "" >> transformed/README.md + echo ":::info[Note]" >> transformed/README.md + echo "If you wish to suggest changes on this document, please open a PR on the [Rif Relay Repository](https://github.com/rsksmart/rif-relay.git)" >> transformed/README.md + echo ":::" >> transformed/README.md + echo "" >> transformed/README.md + cat temp_README.md >> transformed/README.md # Clean up temporary file - rm ${TEMP_FILE} - cp ${TRANSFORMED_FILE} devportal/docs/02-developers/06-integrate/01-rif-relay/overview.md + rm temp_README.md + cp transformed/README.md devportal/docs/02-developers/06-integrate/01-rif-relay/overview.md # Process integrations section - TEMP_FILE="temp_integrate.md" - TRANSFORMED_FILE="transformed/integrate.md" - echo "new temp file name is" - echo ${TEMP_FILE} - echo "new transformed file name is" - echo ${TRANSFORMED_FILE} - # Remove the unwanted first lines from section (title) tail -n +1 docs/integrate.md > temp_integrate.md echo "---" > transformed/integrate.md