ci: update pr action
This commit is contained in:
2
.github/workflows/post-release.yml
vendored
2
.github/workflows/post-release.yml
vendored
@@ -94,7 +94,7 @@ jobs:
|
|||||||
echo "Ref: ${{ github.ref }}"
|
echo "Ref: ${{ github.ref }}"
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Create pull request
|
||||||
uses: peter-evans/create-pull-request@v5
|
uses: peter-evans/create-pull-request@v7
|
||||||
if: steps.commit.outputs.committed == 'true'
|
if: steps.commit.outputs.committed == 'true'
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -301,6 +301,7 @@ function log(message: string) {
|
|||||||
}
|
}
|
||||||
function execSyncSafe(command: string, options?: Parameters<typeof execSync>[1]) {
|
function execSyncSafe(command: string, options?: Parameters<typeof execSync>[1]) {
|
||||||
try {
|
try {
|
||||||
|
console.log(`Executing: ${command}`)
|
||||||
execSync(command, options)
|
execSync(command, options)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
@@ -317,5 +318,6 @@ function execSyncSafe(command: string, options?: Parameters<typeof execSync>[1])
|
|||||||
} else {
|
} else {
|
||||||
console.error('An unexpected error occurred:', error)
|
console.error('An unexpected error occurred:', error)
|
||||||
}
|
}
|
||||||
|
throw error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user