Skip to content

Commit

Permalink
[ECO-2796] Update processor submodule GitHub Actions check to work wi…
Browse files Browse the repository at this point in the history
…th `emojicoin-arena` and `arena` branches (#570)
  • Loading branch information
xbtmatt authored Feb 7, 2025
1 parent a9258dc commit d4e99a8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/submodule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ jobs:
steps:
- uses: 'actions/checkout@v3'
- run: 'git submodule update --init --recursive src/rust/processor'
- run: 'git fetch'
working-directory: 'src/rust/processor'
- run: 'git diff --quiet origin/emojicoin-dot-fun'
# yamllint disable rule:indentation
- run: |
branch="${{ github.head_ref || github.ref_name }}"
target_branch="emojicoin-dot-fun"
if [ "$branch" = "arena" ]; then
target_branch="emojicoin-arena"
fi
git fetch origin $target_branch
git diff --quiet origin/$target_branch
working-directory: 'src/rust/processor'
# yamllint enable rule:indentation
name: 'Ensure correct version of processor submodule'
'on':
pull_request: null
Expand Down

0 comments on commit d4e99a8

Please sign in to comment.