PR sha is the wrong one, fix it

Signed-off-by: Nicolas Belouin <nicolas.belouin@suse.com>
This commit is contained in:
2025-02-24 11:16:34 +01:00
parent 3dea69443d
commit d97e434fce
2 changed files with 4 additions and 2 deletions

View File

@@ -40,7 +40,9 @@ jobs:
PROJECT="$(grep PROJECT .obs/common.py | sed 's/PROJECT = "\(.*\)"/\1/')"
python3 .obs/render_meta.py --pr ${{ gitea.event.number }} --scm-url "${SCM_URL}" | osc meta prj "${PROJECT}:Staging:PR-${{ gitea.event.number }}" -F -
fi
- run: |
- env:
GIT_SHA: ${{ gitea.event.pull_request.head.sha }}
run: |
if [ "${{ gitea.event.action }}" != "closed" ]; then
PROJECT="$(grep PROJECT .obs/common.py | sed 's/PROJECT = "\(.*\)"/\1/')"
export OBS_PROJECT="${PROJECT}:Staging:PR-${{ gitea.event.number }}"