From 92f9550741a0c5e79ffef2bd9bda10016c0fc674 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 20 Jun 2023 14:20:15 +0000 Subject: [PATCH] testing --- .github/workflows/main.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e973a5d020..a9c835e797 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,6 +34,14 @@ jobs: id: date run: echo "::set-output name=current_date::$(date +'%Y-%m-%d-%HH%MM%SS')" + - name: Check out main branch + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + env: + GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} + - name: Sync fork run: gh repo sync $REPOSITORY -b $BRANCH_NAME env: @@ -41,11 +49,6 @@ jobs: REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }} BRANCH_NAME: ${{ github.ref_name }} - - name: Check out main branch - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Create branch run: |