aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-11-14 19:53:38 -0500
committerTaylor Blau <me@ttaylorr.com>2022-11-14 19:53:38 -0500
commit69eb1be6939b5bc4633e9b635dbc94baf8aa504c (patch)
treeb8e9e467e455dc9f26a9dcf5a0cd5c475b1e0c87
parentMerge branch 'ab/rev-info-init' (diff)
parentci: use a newer `github-script` version (diff)
downloadgit-69eb1be6939b5bc4633e9b635dbc94baf8aa504c.tar.gz
git-69eb1be6939b5bc4633e9b635dbc94baf8aa504c.zip
Merge branch 'js/ci-set-output'
Update the actions/github-script dependency in CI to avoid a deprecation warning. * js/ci-set-output: ci: use a newer `github-script` version
-rw-r--r--.github/workflows/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index bd6f75b8e0..592f9193a8 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -37,14 +37,14 @@ jobs:
echo "::set-output name=enabled::$enabled"
- name: skip if the commit or tree was already tested
id: skip-if-redundant
- uses: actions/github-script@v3
+ uses: actions/github-script@v6
if: steps.check-ref.outputs.enabled == 'yes'
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
try {
// Figure out workflow ID, commit and tree
- const { data: run } = await github.actions.getWorkflowRun({
+ const { data: run } = await github.rest.actions.getWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId,
@@ -54,7 +54,7 @@ jobs:
const tree_id = run.head_commit.tree_id;
// See whether there is a successful run for that commit or tree
- const { data: runs } = await github.actions.listWorkflowRuns({
+ const { data: runs } = await github.rest.actions.listWorkflowRuns({
owner: context.repo.owner,
repo: context.repo.repo,
per_page: 500,