From e5e61ee60219b79f6d059136e9379dd8a4849d10 Mon Sep 17 00:00:00 2001 From: Paul Padier Date: Thu, 16 Nov 2023 09:30:45 +0900 Subject: [PATCH 1/3] RF-31415 Add integration test checking that the created run's source is properly set --- .github/workflows/rainforest.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/rainforest.yml b/.github/workflows/rainforest.yml index 94beda9..6a4be10 100644 --- a/.github/workflows/rainforest.yml +++ b/.github/workflows/rainforest.yml @@ -15,3 +15,15 @@ jobs: with: token: ${{ secrets.RF_MAIN_API_TOKEN }} run_group_id: 9861 + - name: Get run source + id: get_run_source + env: + token: ${{ secrets.RF_MAIN_API_TOKEN }} + run: | + source=$(curl -s -X GET -H "Client-Token: $token" "https://app.rainforestqa.com/api/1/runs/$(cat .rainforest_run_id)?slim=true" | jq -r ".source") + echo "source=$source" >> "$GITHUB_OUTPUT" + - name: Test run source + uses: ./.github/actions/test + with: + actual: ${{ steps.get_run_source.outputs.source }} + expected: rainforest-gh-action From 36890c277c318af31a4a176734f3bf09b62b80f5 Mon Sep 17 00:00:00 2001 From: Paul Padier Date: Thu, 16 Nov 2023 09:45:38 +0900 Subject: [PATCH 2/3] RF-31415 Fix setting action version when starting run --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2aaf623..ff87593 100644 --- a/action.yml +++ b/action.yml @@ -127,7 +127,7 @@ runs: uses: docker://gcr.io/rf-public-images/rainforest-cli:latest if: (! inputs.dry_run) env: - GH_ACTION_VERSION: ${{ env.version }} + GH_ACTION_VERSION: ${{ env.RF_ACTION_VERSION }} with: args: ${{ steps.validate.outputs.command }} - name: Archive Rainforest results From 4daa2964aeb3c6972236cce97c897d652f603eaa Mon Sep 17 00:00:00 2001 From: Paul Padier Date: Thu, 16 Nov 2023 09:47:47 +0900 Subject: [PATCH 3/3] RF-31415 Bump version to 3.2.5 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ff87593..4ae4c6d 100644 --- a/action.yml +++ b/action.yml @@ -93,7 +93,7 @@ runs: - name: Set Action Version shell: bash run: | - echo "RF_ACTION_VERSION=3.2.4" >> $GITHUB_ENV + echo "RF_ACTION_VERSION=3.2.5" >> $GITHUB_ENV - name: Check for reruns uses: pat-s/always-upload-cache@v3 if: (! inputs.dry_run)