From 659931a79bb62ae2cca90fd921277830effa0d7d Mon Sep 17 00:00:00 2001 From: Vijay A Date: Fri, 29 Apr 2022 06:49:04 -0500 Subject: Use 'fetch-depth: 0' to pull in all history (trying to see if the submodule-update issue gets fixed) --- .github/workflows/builds.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to '.github/workflows/builds.yml') diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index ab91c3205..8902d60f8 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -59,6 +59,15 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com + # TODO: Need to check if this is required, keeping for future reference (can be removed if the submodule-update issue is resolved with other changes in this commit) + # Defensive: update submodules in the develop branch + # git checkout develop + # git submodule update --init --recursive --remote --rebase --force + # git add . + # git commit -am "Update submodules [skip ci]" --no-verify || true + # git push origin develop --no-verify + # git checkout - + CHANGES_COUNT=$(git diff --shortstat origin/develop | wc -l) MANUAL_REBUILD="${{ github.event_name == 'workflow_dispatch' }}" VERSION_BUMP="${{ contains(github.event.inputs.message, '[version bump]') }}" @@ -110,12 +119,14 @@ jobs: if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} with: submodules: recursive + fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging ref: nightly - name: Checkout code along with submodules for any branch if the trigger event is NOT 'scheduled' and this is NOT a forced rebuild on the nightly branch uses: actions/checkout@v3 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }} with: submodules: recursive + fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging - name: Extract Git branch name from the currently checked out branch (not from the branch where this run was kicked off) run: echo "GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV shell: bash @@ -195,12 +206,14 @@ jobs: if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} with: submodules: recursive + fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging ref: nightly - name: Checkout code along with submodules for any branch if the trigger event is NOT 'scheduled' and this is NOT a forced rebuild on the nightly branch uses: actions/checkout@v3 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }} with: submodules: recursive + fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging - name: Extract Git branch name from the currently checked out branch (not from the branch where this run was kicked off) run: echo "GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV shell: bash @@ -299,12 +312,14 @@ jobs: if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} with: submodules: recursive + fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging ref: nightly - name: Checkout code along with submodules for any branch if the trigger event is NOT 'scheduled' and this is NOT a forced rebuild on the nightly branch uses: actions/checkout@v3 if: ${{ github.event_name != 'schedule' && env.MANUAL_REBUILD_ON_NIGHTLY != 'true' }} with: submodules: recursive + fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging - name: Extract Git branch name from the currently checked out branch (not from the branch where this run was kicked off) run: echo "GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV shell: bash -- cgit v1.2.3-70-g09d2