ci: add workflow to update emscripten
This commit is contained in:
parent
1b1e99bf1a
commit
47a2f042d5
1 changed files with 32 additions and 0 deletions
32
.github/workflows/emscripten.yml
vendored
Normal file
32
.github/workflows/emscripten.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: Update Emscripten
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
update-emscripten:
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Set up stable Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
||||
- name: Run emscripten update xtask
|
||||
env:
|
||||
GIT_AUTHOR_NAME: dependabot[bot]
|
||||
GIT_AUTHOR_EMAIL: 49699333+dependabot[bot]@users.noreply.github.com
|
||||
GIT_COMMITTER_NAME: dependabot[bot]
|
||||
GIT_COMMITTER_EMAIL: 49699333+dependabot[bot]@users.noreply.github.com
|
||||
run: cargo xtask update-emscripten
|
||||
|
||||
- name: Push updated version
|
||||
run: git push origin HEAD:$GITHUB_HEAD_REF
|
||||
Loading…
Add table
Add a link
Reference in a new issue