Skip to content

Commit

Permalink
Merge pull request #38 from rainforestapp/RF-31415/pp/fix-version-set…
Browse files Browse the repository at this point in the history
…ting

[RF-31415] Fix setting of version when starting a run
  • Loading branch information
magni- authored Nov 16, 2023
2 parents 38c5880 + 4daa296 commit 5855f2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/rainforest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5855f2c

Please sign in to comment.