From bb4e25b1af75cc7b4be8daa6bbaf19dffb96490a Mon Sep 17 00:00:00 2001 From: lianbenjamin <79077248+lianbenjamin@users.noreply.github.com> Date: Tue, 23 Jan 2024 09:37:24 +0200 Subject: [PATCH] try checkout from branch --- .github/workflows/run_patch.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_patch.yaml b/.github/workflows/run_patch.yaml index b27412180..6ef9381ea 100644 --- a/.github/workflows/run_patch.yaml +++ b/.github/workflows/run_patch.yaml @@ -3,11 +3,11 @@ name: Patch run-name: Patch on: -# push: -# branches: -# - '*' + push: + branches: + - '*' - workflow_dispatch: +# workflow_dispatch: # inputs: # branch: # description: 'branch name' @@ -54,6 +54,14 @@ jobs: name=${GITHUB_REF#refs/heads/} echo $name echo "name=${name}" >> $GITHUB_OUTPUT + checkout_code: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + token: ${{ secrets.PLAYER_GITHUB_BOT_TOKEN }} + ref: $ {{ needs.branch-name.outputs.branch-name }} # canary: # uses: kaltura/playkit-js-common/.github/workflows/canary_player.yaml@master # secrets: inherit