From 48eb5e60e78c2b612fa50d4d25b18d1579f5d964 Mon Sep 17 00:00:00 2001 From: Katsumi Kato Date: Sun, 12 Mar 2023 10:22:02 +0000 Subject: [PATCH] Install simple-git --- .github/workflows/tagpr.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tagpr.yml b/.github/workflows/tagpr.yml index 3b10539..d7ab88c 100644 --- a/.github/workflows/tagpr.yml +++ b/.github/workflows/tagpr.yml @@ -21,6 +21,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci + - run: npm install simple-git - name: Trigger CI Workflow uses: actions/github-script@v6 with: @@ -34,7 +39,7 @@ jobs: if (pullRequests.length > 0) { const pullRequest = pullRequests[0]; - const git = simpleGit(); + const git = require('simple-git'); await git.addConfig('user.name', 'GitHub Actions'); await git.addConfig('user.email', 'actions@github.com');