Skip to content

Commit

Permalink
Merge pull request #434 from rabbitmq/add-oci-workflow-sanity-check
Browse files Browse the repository at this point in the history
Fail the OCI workflow if the ra version is not injected properly
  • Loading branch information
michaelklishin authored Apr 24, 2024
2 parents 41beec4 + 01ef566 commit 2968d11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/rabbitmq-oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ jobs:
- name: Patch Ra version
working-directory: deps/ra
run: |
sed -i"_orig" "/vsn,/ s/2\\.[0-9]\\.[0-9]/${{ github.event.pull_request.head.sha || github.sha }}/" src/ra.app.src
sed -r -i"_orig" '/vsn,/ s/".*"/"${{ github.event.pull_request.head.sha || github.sha }}"/' src/ra.app.src
if git diff --exit-code; then
exit 1
fi
- name: Configure Erlang
uses: erlef/setup-beam@v1
with:
Expand Down

0 comments on commit 2968d11

Please sign in to comment.