From 126a1f6feca220a68ec16834fea103dd3b76eda4 Mon Sep 17 00:00:00 2001 From: plocket <52798256+plocket@users.noreply.github.com> Date: Tue, 21 May 2024 10:53:01 -0400 Subject: [PATCH] Use syntax from https://docs.github.com/en/actions/using-workflows/using-github-cli-in-workflows --- .github/workflows/github_server.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github_server.yml b/.github/workflows/github_server.yml index eb5445cd..abea66d2 100644 --- a/.github/workflows/github_server.yml +++ b/.github/workflows/github_server.yml @@ -142,12 +142,10 @@ jobs: # labels: | # testing - # Step to set up GitHub CLI - - name: Set up GitHub CLI - uses: actions/setup-github-cli@v1 - # Step to create an issue with the file content - name: Create issue if: ${{ failure() && '$UNEXPECTED_RESULTS' != 'false' }} run: | - gh issue create --title "ALKiln tests failed" --body "An ALKiln test run failed. See the action at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}. ### Report of unexpected results:${{ env.UNEXPECTED_RESULTS }}" --repo ${{ github.repository }} + gh issue create --title "ALKiln tests failed" --body "An ALKiln test run failed. See the action at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}. ### Report of unexpected results:${{ env.UNEXPECTED_RESULTS }}" --repo "$GITHUB_REPOSITORY" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}