go back to v6

This commit is contained in:
dcvz 2024-08-01 17:34:31 +02:00
parent aeda338984
commit f3ed68a359

View file

@ -12,14 +12,14 @@ jobs:
steps:
- name: Get PR Number
id: pr-number
uses: actions/github-script@v7
uses: actions/github-script@v6
with:
result-encoding: string
script: |
const { owner, repo } = context.repo;
const findPRNumber = async () => {
const pulls = await github.rest.pulls.list.endpoint.merge({ owner, repo });
const pulls = await github.rest.pulls.list({ owner, repo });
for await (const { data } of github.paginate.iterator(pulls)) {
for (const pull of data) {
if (pull.head.sha === '${{ github.event.workflow_run.head_sha }}' && pull.user.id === '${{ github.event.sender.id }}') {
@ -39,7 +39,7 @@ jobs:
}
- name: Create Artifacts Content
id: artifacts-content
uses: actions/github-script@v7
uses: actions/github-script@v6
with:
result-encoding: string
script: |