Skip to content

Commit

Permalink
Test workflow creating a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
michalinacienciala committed Apr 26, 2023
1 parent 81baa4e commit 6bd4192
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/createPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Create a pull request
env:
Expand All @@ -17,16 +19,16 @@ jobs:
git config --global user.email "michalina.cienciala@akena.co"
git config --global user.name "Michalina Cienciala"
echo "Checkout"
git checkout auto-update-api-docs || git checkout -b auto-update-api-docs
echo "Pull"
git pull
git checkout auto-update-api-docs-3 || git checkout -b auto-update-api-docs-3
# echo "Pull"
# git pull
echo "Edit"
date > newfile.txt
echo "Add"
git add -A
echo "Commit"
git commit -m "Update docs"
echo "Push"
git push --set-upstream origin HEAD:auto-update-api-docs
git push --set-upstream origin HEAD:auto-update-api-docs-3
echo "PR"
hub pull-request -m "Update Solidity API docs" # --reviewer [...] --labels [...]
hub pull-request --base main --message "Update Solidity API docs" --message "Docs updated by workflow:" # --reviewer [...] --labels [...]

0 comments on commit 6bd4192

Please sign in to comment.