Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chihchy committed May 27, 2023
1 parent 157d100 commit 0a4a294
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -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'
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a4a294

Please sign in to comment.