From 118bb3dff3f56a0f939852393b99b317e84c7071 Mon Sep 17 00:00:00 2001 From: yicheng <11733500+yichengchen@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:28:06 +0800 Subject: [PATCH] misc: update github action macos version --- .github/workflows/build.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1062b94a..fa21bcf3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: jobs: build: name: Build ipa - runs-on: macos-13 + runs-on: macos-14 steps: - name: Checkout @@ -23,21 +23,21 @@ jobs: bundle install -j 4 bundle exec fastlane build_unsign_ipa - - name: List, filter and delete artifacts - if: github.ref == 'refs/heads/main' && github.event_name == 'push' - uses: actions/github-script@v6 - id: artifact - with: - script: | - const { owner, repo } = context.issue + # - name: List, filter and delete artifacts + # if: github.ref == 'refs/heads/main' && github.event_name == 'push' + # uses: actions/github-script@v6 + # id: artifact + # with: + # script: | + # const { owner, repo } = context.issue - const res = await github.rest.actions.listArtifactsForRepo({ - owner, - repo, - }) + # const res = await github.rest.actions.listArtifactsForRepo({ + # owner, + # repo, + # }) - res.data.artifacts - .forEach(({ id }) => { github.rest.actions.deleteArtifact({ owner, repo, artifact_id: id, }) }) + # res.data.artifacts + # .forEach(({ id }) => { github.rest.actions.deleteArtifact({ owner, repo, artifact_id: id, }) }) - name: Upload latest artifact if: github.ref == 'refs/heads/main' && github.event_name == 'push' @@ -45,4 +45,4 @@ jobs: with: name: main-unsigned.ipa path: BilbiliAtvDemo.ipa - retention-days: 30 + retention-days: 60