From 0a4a294975fb030829d44558eb48bafc83e416ce Mon Sep 17 00:00:00 2001 From: Chihchy Date: Sat, 27 May 2023 23:49:24 +0800 Subject: [PATCH] Update CI --- .github/workflows/dependencies.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/deploy.yml | 6 +++--- .github/workflows/test.yml | 5 +++-- 3 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/dependencies.yml diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml new file mode 100644 index 00000000..751ff046 --- /dev/null +++ b/.github/workflows/dependencies.yml @@ -0,0 +1,30 @@ +name: Xcode Dependencies +on: + schedule: + - cron: '0 0 * * 1' + push: + branches: + - main +permissions: + contents: write + pull-requests: write +jobs: + dependencies: + runs-on: macos-13 + if: ${{ contains(github.event.head_commit.message, '[update dependencies]') || github.event_name == 'schedule' }} + steps: + - uses: actions/checkout@v2 + - name: Resolve Dependencies + id: resolution + uses: GetSidetrack/action-xcodeproj-spm-update@main + with: + forceResolution: true + failWhenOutdated: false + - name: Create Pull Request + if: steps.resolution.outputs.dependenciesChanged == 'true' + uses: peter-evans/create-pull-request@v3 + with: + branch: 'update-dependencies' + delete-branch: true + commit-message: 'Update dependencies [skip test]' + title: 'Updated Dependencies' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4c4cfbdc..11ad7064 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,8 +5,8 @@ on: - main types: [closed] env: - DEVELOPER_DIR: /Applications/Xcode_14.2.app - APP_VERSION: '2.6.1' + DEVELOPER_DIR: /Applications/Xcode_14.3.app + APP_VERSION: '2.7.0' SCHEME_NAME: 'EhPanda' ALTSTORE_JSON_PATH: './AltStore.json' BUILDS_PATH: '/tmp/action-builds' @@ -19,7 +19,7 @@ env: jobs: Deploy: - runs-on: macos-12 + runs-on: macos-13 if: github.event.pull_request.merged == true && github.event.pull_request.user.login == 'chihchy' steps: - name: Checkout diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 744fa29f..e83cb865 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,10 +2,11 @@ name: Test on: [push] env: SCHEME_NAME: 'EhPanda' - DEVELOPER_DIR: /Applications/Xcode_14.2.app + DEVELOPER_DIR: /Applications/Xcode_14.3.app jobs: Test: - runs-on: macos-12 + runs-on: macos-13 + if: ${{ !contains(github.event.head_commit.message, '[skip test]') }} steps: - name: Checkout uses: actions/checkout@v2