update
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -19,12 +19,11 @@ jobs:
|
||||
steps:
|
||||
- name: Pull Frida Latest Release
|
||||
id: pullFridaLatestRelease
|
||||
uses: actions/github-script@v6.4.1
|
||||
uses: actions/github-script@v3.1.0
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const { GitHub } = require('@actions/github/lib/utils');
|
||||
const releaseResponse = await GitHub.repos.getLatestRelease({
|
||||
const releaseResponse = await github.repos.getLatestRelease({
|
||||
owner: 'frida',
|
||||
repo: 'frida',
|
||||
})
|
||||
@@ -43,14 +42,13 @@ jobs:
|
||||
|
||||
- name: Check release version
|
||||
id: checkReleaseVersion
|
||||
uses: actions/github-script@v6.4.1
|
||||
uses: actions/github-script@v3.1.0
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const { GitHub } = require('@actions/github/lib/utils');
|
||||
try {
|
||||
const releaseVersion = '${{ steps.pullFridaLatestRelease.outputs.FRIDA_VERSION }}'
|
||||
const releaseResponse = await GitHub.repos.getReleaseByTag({
|
||||
const releaseResponse = await github.repos.getReleaseByTag({
|
||||
owner: '${{ steps.split_name.outputs.owner }}',
|
||||
repo: '${{ steps.split_name.outputs.repo }}',
|
||||
tag: releaseVersion
|
||||
@@ -149,14 +147,13 @@ jobs:
|
||||
|
||||
- name: Check release version
|
||||
id: checkReleaseVersion
|
||||
uses: actions/github-script@v6.4.1
|
||||
uses: actions/github-script@v3.1.0
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const { GitHub } = require('@actions/github/lib/utils');
|
||||
try {
|
||||
const releaseVersion = '${{ needs.check_version.outputs.FRIDA_VERSION }}'
|
||||
const releaseResponse = await GitHub.repos.getReleaseByTag({
|
||||
const releaseResponse = await github.repos.getReleaseByTag({
|
||||
owner: '${{ steps.split_name.outputs.owner }}',
|
||||
repo: '${{ steps.split_name.outputs.repo }}',
|
||||
tag: releaseVersion
|
||||
|
||||
Reference in New Issue
Block a user