Live Smoke Run #2
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
| name: Live Smoke Run | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| inputs: | |
| timeout: | |
| description: "Minutes to keep the session alive" | |
| required: false | |
| default: "10" | |
| jobs: | |
| live-smoke: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| issues: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Create tracking issue | |
| id: tracking | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| issue_url="$( | |
| gh issue create \ | |
| --repo "${{ github.repository }}" \ | |
| --title "Live BrowserBox run ${{ github.run_id }}" \ | |
| --body "Tracking BrowserBox login link for run ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}." | |
| )" | |
| issue_number="${issue_url##*/}" | |
| echo "issue-number=${issue_number}" >> "$GITHUB_OUTPUT" | |
| echo "::notice title=BrowserBox Tracking Issue::${issue_url}" | |
| - name: Run BrowserBox | |
| id: bbx | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| uses: ./ | |
| with: | |
| license-key: ${{ secrets.BBX_LICENSE_KEY }} | |
| timeout: ${{ github.event.inputs.timeout || '10' }} | |
| broadcast-issue-number: ${{ steps.tracking.outputs.issue-number }} |