From 87ab2cb43d54fa757ebe84f5e2838ad54abf4dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 1 Jun 2023 11:23:41 +0300 Subject: [PATCH] github: Expose the job properties (TAG and versions) in an artifact too While we use the job outputs since 18bd3665ac56fda41177814f243a0fff9a9434c4, having the info available in an artifact makes it easier to fetch this in later separate workflows. --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9245cc8..6551fd9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,7 @@ jobs: fi echo TAG=$TAG >> $GITHUB_OUTPUT cat $GITHUB_OUTPUT + cat $GITHUB_OUTPUT >> parameters.txt - name: Check latest version if: github.event_name == 'schedule' id: get-versions @@ -45,6 +46,13 @@ jobs: echo MINGW_W64_VERSION=$(git ls-remote https://github.com/mingw-w64/mingw-w64.git | grep 'refs/heads/master$' | awk '{print $1}') >> $GITHUB_OUTPUT echo PYTHON_VERSION_MINGW=$(git ls-remote https://github.com/msys2-contrib/cpython-mingw.git | grep 'refs/heads/mingw-v3.10.11$' | awk '{print $1}') >> $GITHUB_OUTPUT cat $GITHUB_OUTPUT + cat $GITHUB_OUTPUT >> parameters.txt + - uses: actions/upload-artifact@v3 + with: + name: parameters + path: | + parameters.txt + retention-days: 7 # Build a cross compiler for Linux, targeting Windows. linux: