From 247c548f43a10ba5bd7743e1326d63e9fceb53f3 Mon Sep 17 00:00:00 2001 From: Sebastian Guaqueta Date: Fri, 3 Jan 2025 07:53:00 -0500 Subject: [PATCH] feat/ adding timestamp to PR name for automation --- .github/workflows/devportal-update.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devportal-update.yml b/.github/workflows/devportal-update.yml index 4a7d837..e35219c 100644 --- a/.github/workflows/devportal-update.yml +++ b/.github/workflows/devportal-update.yml @@ -41,7 +41,7 @@ jobs: echo "sidebar_label: Foundry" >> transformed/README.md echo "sidebar_position: 500" >> transformed/README.md echo "title: Rootstock Foundry Starter kit" >> transformed/README.md - echo "description: 'Whether you are a seasoned developer or just starting your journey into smart contract development, the foundry starter kit provides a solid foundation for building decentralized applications (dApps) on the Rootstock network.'" >> transformed/README.md + echo "description: Whether you are a seasoned developer or just starting your journey into smart contract development, the foundry starter kit provides a solid foundation for building decentralized applications (dApps) on the Rootstock network." >> transformed/README.md echo "tags: [rsk, rootstock, tutorials, developers, foundry, quick starts, dApps, smart contracts]" >> transformed/README.md echo "---" >> transformed/README.md echo "" >> transformed/README.md @@ -72,8 +72,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.DEVPORTAL_DOCS_UPDATE_TOKEN }} run: | cd devportal + TIMESTAMP=$(date +'%Y-%m-%d-%H-%M-%S') curl -L -X POST -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.DEVPORTAL_DOCS_UPDATE_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/rsksmart/devportal/pulls \ - -d '{"title":"rootstock-foundry-starterkit automated update of documentation ${BRANCH_NAME}","body":"This PR updates the Devportal documentation with the latest changes from the original repository.","head":"${BRANCH_NAME}","base":"main"}' + -d '{"title":"Rootstock-foundry-starterkit automated update of documentation ${TIMESTAMP}","body":"This PR updates the Devportal documentation with the latest changes from the original repository.","head":"${BRANCH_NAME}","base":"main"}'