1
0
forked from suse-edge/Factory

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 }}"

View File

@@ -73,7 +73,7 @@ def print_results(status: ET.Element) -> bool:
def main():
project = os.environ.get("OBS_PROJECT")
sha = os.environ.get("GITEA_SHA")
sha = os.environ.get("GIT_SHA")
print(f"Waiting for OBS to build {project} for commit {sha}")
status = do_wait(project, sha)
if print_results(status):