Skip to content

Commit

Permalink
energia positiva
Browse files Browse the repository at this point in the history
  • Loading branch information
peregrinno committed Oct 19, 2024
1 parent 9ee2325 commit 98570f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/daily-random-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const branchName = process.env.BRANCH_NAME;
const { data: pr } = await github.pulls.create({
const pr = await github.rest.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
head: branchName,
base: 'main',
title: `Adicionando commits automáticos via branch ${branchName}`,
body: 'Este pull request contém commits automáticos gerados pelo script.',
});
console.log(`Pull Request criado: ${pr.html_url}`);
console.log(`Pull Request criado: ${pr.data.html_url}`);
- name: Merge Pull Request
uses: actions/github-script@v6
Expand All @@ -118,4 +118,3 @@ jobs:
pull_number: pr.number,
merge_method: 'merge',
});
}

0 comments on commit 98570f4

Please sign in to comment.