Skip to content
Snippets Groups Projects
Commit 2f2e2ff4 authored by Yaroslav Lobankov's avatar Yaroslav Lobankov Committed by Kirill Yukhin
Browse files

ci: pass SHA to reusable_build.yml instead of ref

Imagine the following situation. One pushed a commit to the master
branch, the 'integration.yml' workflow is triggered and starts to work.
The first step of this workflow is to build tarantool from the pushed
commit. Sometimes we have to wait for a free runner for some period of
time because our resources are limited. One pushed a commit to the
master branch one more time, but tarantool build for the previous
commit hasn't started yet. When tarantool build from the previous
commit starts, actually tarantool will be built from the last commit
because ${{ github.ref }} is passed to the 'reusable_build.yml'
workflow as an input parameter. So we need to pass ${{ github.sha }}.
parent 9ac85ace
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ jobs:
tarantool:
uses: tarantool/tarantool/.github/workflows/reusable_build.yml@master
with:
ref: ${{ github.ref }}
ref: ${{ github.sha }}
os: ubuntu
dist: focal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment