From 45b610e6bfcb0529f3d64875090bacfe5e1f9dac Mon Sep 17 00:00:00 2001 From: ShaMan123 <shacharnen@gmail.com> Date: Wed, 28 Sep 2022 16:53:59 +0300 Subject: [PATCH] Update update_bug_report.yml --- .github/workflows/update_bug_report.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update_bug_report.yml b/.github/workflows/update_bug_report.yml index c0087091..98b08bdb 100644 --- a/.github/workflows/update_bug_report.yml +++ b/.github/workflows/update_bug_report.yml @@ -87,14 +87,14 @@ jobs: result-encoding: string script: | return new Array(500).fill(0).map((_, i) => `#${i + 1}`).reverse(); - update-bug-report-main: + update-bug-report-m: name: Update bug report on `main` runs-on: ubuntu-latest needs: pre steps: - uses: actions/checkout@v3 with: - fetch-depth: 2 + fetch-depth: 0 - run: git checkout HEAD^ - name: Update branches uses: ./ @@ -102,10 +102,6 @@ jobs: dropdown: branches options: ${{ needs.pre.outputs.branches }} commit_message: 'chore(): update bug report branches' - # This option will checkout the local branch to `main` - # Any consequent steps will run in the same context - # That is why we isolate it in a separate job - ref: main update-bug-report: name: Update bug report on branch `${{ needs.pre.outputs.branch }}` runs-on: ubuntu-latest @@ -113,7 +109,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - fetch-depth: 2 + fetch-depth: 0 - run: git checkout HEAD^ - name: Update labels uses: ./ @@ -149,7 +145,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - fetch-depth: 2 + fetch-depth: 0 - run: git checkout HEAD^ - name: Update long dropdown uses: ./