chore(deps): bump dtolnay/rust-toolchain from 1.85 to 1.120 #68
Workflow file for this run
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: PR prebuild comment | |
| # Fires once when a same-repository PR is opened against `development`. Posts | |
| # a single comment with paste-ready `package.json` overrides pointing at the | |
| # stremio-core-web prebuild that the `Build` workflow publishes to gh-pages | |
| # for the PR's source branch. Does NOT run again on subsequent pushes. | |
| # | |
| # Fork PRs do not get a prebuild because their pushes do not run in this | |
| # repository. Uses `pull_request_target` to post from the base workflow without | |
| # executing any code from the PR: `actions/checkout` checks out the BASE branch, | |
| # and `pull_request.head.ref` is only inserted into the comment body. | |
| on: | |
| pull_request_target: | |
| types: [opened] | |
| branches: | |
| - development | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| jobs: | |
| comment: | |
| if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Read stremio-core-web version | |
| id: pkg | |
| run: | | |
| VERSION=$(node -p "require('./stremio-core-web/package.json').version") | |
| echo "version=$VERSION" >> "$GITHUB_OUTPUT" | |
| - name: Post prebuild link | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const branch = context.payload.pull_request.head.ref; | |
| const version = '${{ steps.pkg.outputs.version }}'; | |
| const tarball = `stremio-stremio-core-web-${version}.tgz`; | |
| const base = `https://stremio.github.io/stremio-core/stremio-core-web/${branch}`; | |
| const body = [ | |
| '### stremio-core-web prebuild', | |
| '', | |
| `Prebuild artifact published by the \`Build\` workflow after a successful push to branch \`${branch}\`.`, | |
| '', | |
| 'Paste one of these into `stremio-web`\'s `package.json` and run `pnpm install` to wire this prebuild into a corresponding `stremio-web` PR:', | |
| '', | |
| '**Release**', | |
| '```json', | |
| `"@stremio/stremio-core-web": "${base}/${tarball}"`, | |
| '```', | |
| '', | |
| '**Dev**', | |
| '```json', | |
| `"@stremio/stremio-core-web": "${base}/dev/${tarball}"`, | |
| '```', | |
| ].join('\n'); | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body, | |
| }); |