From ab02b32c1804c2cf8ae4f8e99c41bb91c90b0e2c Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Tue, 24 Jun 2025 16:19:47 -0500 Subject: [PATCH] feat: made it so that format and increment can be run subsequently after each other without conflicts --- .github/workflows/format.yml | 4 ++++ .github/workflows/increment.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 528bb6d..c96c4bf 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -25,6 +25,10 @@ jobs: steps: - name: checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: fetch latest commit + run: git pull origin "$(git rev-parse --abbrev-ref HEAD)" - name: set up csharp if: inputs.language == 'csharp' uses: c4patino/actions/.github/actions/setup-csharp@main diff --git a/.github/workflows/increment.yml b/.github/workflows/increment.yml index 734d624..98a01ce 100644 --- a/.github/workflows/increment.yml +++ b/.github/workflows/increment.yml @@ -17,6 +17,10 @@ jobs: steps: - name: checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: fetch latest commit + run: git pull origin "$(git rev-parse --abbrev-ref HEAD)" - name: set up js if: inputs.language == 'js' uses: c4patino/actions/.github/actions/setup-js@main