Merge pull request #45 from rainforestapp/change_run_group_id #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| 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: 17684 | |
| - 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 |