Skip to content

Commit

Permalink
chore: update data-refresh.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kuutsav authored Jun 9, 2024
1 parent 7fa81b8 commit 14fb50b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/data-refresh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,12 @@ jobs:
git push
- name: Create Pull Request
uses: actions/github-script@v6
uses: peter-evans/create-pull-request@v4
with:
script: |
const { repo, owner } = context.repo;
const result = await github.rest.pulls.create({
title: 'Automatic Data Update',
owner,
repo,
head: '${{ github.ref_name }}',
base: 'main',
body: 'Automatic LeetCode data update'
});
token: ${{ secrets.GH_TOKEN }}
commit-message: Update content
title: "Automated PR to refresh data"
body: "This is an automated pull request to refresh the data."
branch: "data-refresh"
delete-branch: true
draft: false

0 comments on commit 14fb50b

Please sign in to comment.