Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/ adding timestamp to PR name for automation #20

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/devportal-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"}'
Loading