From 9a845752db8edc334b61b121b49102244a9f533d Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Mon, 25 Sep 2023 10:12:24 +0100 Subject: [PATCH] Add test for git-token --- .github/workflows/test-command.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/test-command.yml b/.github/workflows/test-command.yml index 0653aed84..69a1b8f91 100644 --- a/.github/workflows/test-command.yml +++ b/.github/workflows/test-command.yml @@ -715,6 +715,27 @@ jobs: branch: tests/create-update-with-pat + testCreateWithGitPAT: + needs: beforeTest + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # Download the action artifact + - uses: actions/download-artifact@v3 + with: + name: create-pull-request + path: create-pull-request-local + # Test + - name: Create report file + run: date +%s > report.txt + - name: Create Pull Request + uses: ./create-pull-request-local + with: + git-token: ${{ secrets.TEST_CASE_PAT }} + title: testCreateWithGitPAT + branch: tests/create-with-git-pat + + testCreateInRemoteRepo: needs: beforeTest runs-on: ubuntu-latest @@ -1082,6 +1103,7 @@ jobs: - testAddPaths - testUpdateDraft - testUpdateWithPAT + - testCreateWithGitPAT - testCreateInRemoteRepo - testCreateInRemotePrivateRepo - testCreateWithRelativePath