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 diff --git a/action.yml b/action.yml index 2aaf623..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) @@ -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