From f52b6519769ca65d82fd5fb2ade4f19720cdb915 Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Tue, 15 Aug 2023 16:05:34 -0500
Subject: [PATCH] fix: post report.pdf link to success status

---
 .gitlab-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1f68a386..3ed98b89 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -130,7 +130,8 @@ summary:
       cat templates/report_footer.tex >> report.tex ;
       pdflatex report.tex ;
       pdflatex report.tex ;
-      mv report.pdf results
+      mv report.pdf results ;
+      echo "TARGET_URL=https://eicweb.phy.anl.gov/EIC/benchmarks/physics_benchmarks/-/jobs/${CI_JOB_ID}/artifacts/raw/results/report.pdf?job=summary" | tee -a .env
   artifacts:
     paths:
       - results/*
@@ -143,6 +144,7 @@ benchmarks:physics:success:
   variables:
     STATE: "success"
     DESCRIPTION: "Succeeded!"
+    TARGET_URL: "${TARGET_URL}"
   when: on_success
 
 benchmarks:physics:failure:
-- 
GitLab