From 47a2f042d5c44a51e118c2f3524a57308d118a53 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Tue, 17 Dec 2024 01:46:37 -0500 Subject: [PATCH] ci: add workflow to update emscripten --- .github/workflows/emscripten.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/emscripten.yml diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml new file mode 100644 index 00000000..793c20ce --- /dev/null +++ b/.github/workflows/emscripten.yml @@ -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