From f5bb707e2980091736a65aa6617b31c35473e4ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Guti=C3=A9rrez?= Date: Tue, 21 May 2024 01:18:37 +0200 Subject: [PATCH] use xdebug release id in workflows --- .github/workflows/docker-build.yml | 2 +- .github/workflows/docker-inspect.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index cad0b1d..d82b342 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -32,7 +32,7 @@ jobs: run: echo "vcs_ref=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - id: set_matrix - run: echo "matrix=$(bin/phpdev export-build `curl -s https://github.com/xdebug/xdebug/releases.atom | grep "[0-9]*\.[0-9]*\.[0-9]*" | awk -F '[<>]' '{ print $3; exit }'`)" >> $GITHUB_OUTPUT + run: echo "matrix=$(bin/phpdev export-build `curl -s https://github.com/xdebug/xdebug/releases.atom | grep ".*/[0-9]*\.[0-9]*\.[0-9]*" | sed -E "s/\s*.*\/([0-9]*\.[0-9]*\.[0-9]*)<\/id>/\1<\/release>/" | awk -F '[<>]' '{ print $3; exit }'`)" >> $GITHUB_OUTPUT outputs: build_date: ${{ steps.set_date.outputs.build_date }} diff --git a/.github/workflows/docker-inspect.yml b/.github/workflows/docker-inspect.yml index 07994ed..3d70963 100644 --- a/.github/workflows/docker-inspect.yml +++ b/.github/workflows/docker-inspect.yml @@ -33,7 +33,7 @@ jobs: run: echo "vcs_ref=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - id: set_matrix - run: echo "matrix=$(bin/phpdev export-build `curl -s https://github.com/xdebug/xdebug/releases.atom | grep "[0-9]*\.[0-9]*\.[0-9]*" | awk -F '[<>]' '{ print $3; exit }'`)" >> $GITHUB_OUTPUT + run: echo "matrix=$(bin/phpdev export-build `curl -s https://github.com/xdebug/xdebug/releases.atom | grep ".*/[0-9]*\.[0-9]*\.[0-9]*" | sed -E "s/\s*.*\/([0-9]*\.[0-9]*\.[0-9]*)<\/id>/\1<\/release>/" | awk -F '[<>]' '{ print $3; exit }'`)" >> $GITHUB_OUTPUT outputs: build_date: ${{ steps.set_date.outputs.build_date }}