Skip to content

Commit 5855f2c

Browse files
authored
Merge pull request #38 from rainforestapp/RF-31415/pp/fix-version-setting
[RF-31415] Fix setting of version when starting a run
2 parents 38c5880 + 4daa296 commit 5855f2c

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/rainforest.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ jobs:
1515
with:
1616
token: ${{ secrets.RF_MAIN_API_TOKEN }}
1717
run_group_id: 9861
18+
- name: Get run source
19+
id: get_run_source
20+
env:
21+
token: ${{ secrets.RF_MAIN_API_TOKEN }}
22+
run: |
23+
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")
24+
echo "source=$source" >> "$GITHUB_OUTPUT"
25+
- name: Test run source
26+
uses: ./.github/actions/test
27+
with:
28+
actual: ${{ steps.get_run_source.outputs.source }}
29+
expected: rainforest-gh-action

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ runs:
9393
- name: Set Action Version
9494
shell: bash
9595
run: |
96-
echo "RF_ACTION_VERSION=3.2.4" >> $GITHUB_ENV
96+
echo "RF_ACTION_VERSION=3.2.5" >> $GITHUB_ENV
9797
- name: Check for reruns
9898
uses: pat-s/always-upload-cache@v3
9999
if: (! inputs.dry_run)
@@ -127,7 +127,7 @@ runs:
127127
uses: docker://gcr.io/rf-public-images/rainforest-cli:latest
128128
if: (! inputs.dry_run)
129129
env:
130-
GH_ACTION_VERSION: ${{ env.version }}
130+
GH_ACTION_VERSION: ${{ env.RF_ACTION_VERSION }}
131131
with:
132132
args: ${{ steps.validate.outputs.command }}
133133
- name: Archive Rainforest results

0 commit comments

Comments
 (0)