From be51a09332f3c9bf2079e8ce898cc55053ef316e Mon Sep 17 00:00:00 2001 From: Tosin Akinosho Date: Tue, 28 Nov 2023 15:08:52 -0500 Subject: [PATCH] updating code --- .github/workflows/configure-rhel8-equinix.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/configure-rhel8-equinix.yaml b/.github/workflows/configure-rhel8-equinix.yaml index c84d6b6..c5f0062 100644 --- a/.github/workflows/configure-rhel8-equinix.yaml +++ b/.github/workflows/configure-rhel8-equinix.yaml @@ -69,14 +69,11 @@ jobs: with: github-token: ${{ secrets.PAT }} script: | - const core = require('@actions/core'); - const github = require('@actions/github'); - async function run() { try { await github.repos.createDispatchEvent({ - owner: github.context.repo.owner, - repo: github.context.repo.repo, + owner: context.repo.owner, + repo: context.repo.repo, event_type: "custom_restart", client_payload: { workflow: "Configure RHEL 8 Equinix Server"