-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (32 loc) · 996 Bytes
/
rainforest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on:
workflow_dispatch:
push:
branches:
- master
- RF-31415/pp/fix-version-setting
jobs:
rainforest:
runs-on: ubuntu-latest
name: Run Rainforest
steps:
- uses: actions/checkout@v4
- name: Rainforest
uses: ./
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: |
run_json=$(curl -s -X GET -H "Client-Token: $token" "https://app.rainforestqa.com/api/1/runs/$(cat .rainforest_run_id)?slim=true")
echo "Run JSON:\n$run_json"
source=$(echo "$run_json" | jq -r ".source")
echo "Run Source:\t$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