Skip to content

Commit

Permalink
test: use peter-evans/create-pull-request
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Feb 5, 2024
1 parent 59c6902 commit 0a5e3f4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,5 @@ jobs:
echo "No changes detected."
fi
- name: Create PR
if: steps.check_changes.outputs.changes == 'true'
run: |
branch_name="submodules-update-$(date +'%Y%m%d')"
git checkout -b $branch_name
git add .
git commit -m "[🤖] chore: update submodules"
git push origin $branch_name
hub pull-request -m "[🤖] chore: update submodules" -b main -h $branch_name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6

0 comments on commit 0a5e3f4

Please sign in to comment.