Skip to content

Commit

Permalink
Merge pull request #13 from ottofeller/fix-node12-deprecation-warnings
Browse files Browse the repository at this point in the history
Update github-script and actions/checkout actions to the latest versions
  • Loading branch information
gvidon authored Nov 1, 2022
2 parents 84912fe + b701dd9 commit 2e05de4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- create-release/**
- .github/workflows/test-create-release.yml
push:
branches: main
paths:
- create-release/**
- .github/workflows/test-create-release.yml
Expand Down Expand Up @@ -37,7 +38,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The previous action fails to find a draft release.
# Thus need to delete it manually with octokit.
- uses: actions/github-script@v4
- uses: actions/github-script@v6
env:
RELEASE_ID: ${{ steps.create-release.outputs.release-id }}
with:
Expand All @@ -46,7 +47,7 @@ jobs:
const release_id = process.env.RELEASE_ID
const { owner, repo } = context.repo
try {
await github.repos.deleteRelease({ owner, repo, release_id })
await github.rest.repos.deleteRelease({ owner, repo, release_id })
console.log(`✅ Release "${release_id}" deleted successfully!`)
} catch (e) {
console.error(e)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-latest-release-commit-hash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- latest-release-commit-hash/**
- .github/workflows/test-latest-release-commit-hash.yml
push:
branches: main
paths:
- latest-release-commit-hash/**
- .github/workflows/test-latest-release-commit-hash.yml
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-npm-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- npm-run/**
- .github/workflows/test-npm-run.yml
push:
branches: main
paths:
- npm-run/**
- .github/workflows/test-npm-run.yml
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- publish-npm/**
- .github/workflows/test-publish-npm.yml
push:
branches: main
paths:
- publish-npm/**
- .github/workflows/test-publish-npm.yml
Expand Down
2 changes: 1 addition & 1 deletion generate-db-diagram/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inputs:
runs:
using: composite
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch mermerd
Expand Down

0 comments on commit 2e05de4

Please sign in to comment.