mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 08:42:33 -04:00
Update github-script action REST calls
Breaking changed introduced in actions/github-script@v6. https://github.com/actions/github-script#breaking-changes-in-v5
This commit is contained in:
parent
739b2acd20
commit
13ed8d90b3
1 changed files with 2 additions and 2 deletions
4
.github/workflows/nightly-release.yml
vendored
4
.github/workflows/nightly-release.yml
vendored
|
|
@ -43,7 +43,7 @@ jobs:
|
|||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
try {
|
||||
await github.git.deleteRef({
|
||||
await github.rest.git.deleteRef({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
ref: "tags/nightly"
|
||||
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
} catch (e) {
|
||||
console.log("Warning: The nightly tag doesn't exist yet, so there's nothing to do. Trace: " + e)
|
||||
}
|
||||
await github.git.createRef({
|
||||
await github.rest.git.createRef({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
ref: "refs/tags/nightly",
|
||||
|
|
|
|||
Loading…
Reference in a new issue