Skip to content

Commit 2812207

Browse files
committed
AI changes
1 parent 164646d commit 2812207

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

{{ cookiecutter.package_name }}/.github/workflows/sub_package_update.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ jobs:
7777
7878
- name: Create pull request
7979
if: steps.cruft_json.outputs.has_changes == '1'
80-
uses: peter-evans/create-pull-request@v7
80+
uses: peter-evans/create-pull-request@v8
8181
with:
82-
token: ${{ secrets.GITHUB_TOKEN }}
82+
token: ${{ secrets.BOT_TEMPLATE_WORKFLOW }}
8383
add-paths: "."
8484
commit-message: "Automatic package template update"
8585
branch: "cruft/update"
@@ -145,15 +145,15 @@ jobs:
145145
// If no issue is open, create a new issue,
146146
// else update the body of the existing issue.
147147
if (result.search.edges.length === 0) {
148-
github.rest.issues.create({
148+
await github.rest.issues.create({
149149
owner: variables.owner,
150-
repo: variables.n ame,
150+
repo: variables.name,
151151
body: issue_body,
152152
title: variables.title,
153153
labels: [variables.label],
154154
});
155155
} else {
156-
github.rest.issues.update({
156+
await github.rest.issues.update({
157157
owner: variables.owner,
158158
repo: variables.name,
159159
issue_number: result.search.edges[0].node.number,

0 commit comments

Comments
 (0)