From d5720caadb58f64f6af8543dc0c4407be5844c5f Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 12 Jul 2025 13:31:23 +0200 Subject: [PATCH] refactor(cicd): replace github variables to get the base commit also add a github_context env var to see all available variables --- .gitea/workflows/deliver.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deliver.yml b/.gitea/workflows/deliver.yml index 8085db8..6f39b0b 100644 --- a/.gitea/workflows/deliver.yml +++ b/.gitea/workflows/deliver.yml @@ -16,9 +16,17 @@ jobs: runs-on: ubuntu-latest outputs: changed: ${{ steps.set.outputs.changed }} + + steps: - uses: actions/checkout@v4 + + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" + - name: Detect changed packs id: set run: | - git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^assets/' | cut -d '/' -f2 | sort -u | jq -R -s -c 'split("\n")[:-1]' + git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep '^assets/' | cut -d '/' -f2 | sort -u | jq -R -s -c 'split("\n")[:-1]'