Skip to content

Commit

Permalink
CI: attempt to fix an error in changed-files action
Browse files Browse the repository at this point in the history
The changed-files action fails when pushing a tag:

  Error: Similar commit hashes detected: previous sha: a9cf47f is equivalent to the current sha: a9cf47f.
  Error: Please verify that both commits are valid, and increase the fetch_depth to a number higher than 50.
  Error: Similar commit hashes detected.
  • Loading branch information
stintel committed Sep 14, 2023
1 parent a9cf47f commit d382310
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
trigger_workflow:
if: ${{ github.ref_type != 'tag' }}
name: trigger workflow based on changed files
runs-on: ubuntu-22.04
outputs:
Expand Down Expand Up @@ -39,7 +40,7 @@ jobs:
build_container:
if: ${{ needs.trigger_workflow.outputs.container_any_changed == 'true' }}
if: ${{ needs.trigger_workflow.outputs.container_any_changed == 'true' || github.ref_type == 'tag' }}
uses: ./.github/workflows/build-container.yml
needs: trigger_workflow

Expand Down

0 comments on commit d382310

Please sign in to comment.