Skip to content

Commit

Permalink
Merge pull request #38 from Wei18/chore/github-actions
Browse files Browse the repository at this point in the history
GitHub actions: dependabot / cache / auto-merge / approve
  • Loading branch information
Wei18 authored Mar 15, 2024
2 parents 9bc109c + 92d301b commit c5ecccc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ updates:
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "github-actions"
directory: "/.github/actions/setup"
schedule:
interval: "weekly"

- package-ecosystem: "swift"
directory: "/"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
make install
git push
# gh pr review --approve "$PR_URL"
# gh pr merge --auto --merge "$PR_URL"
gh pr merge --auto --merge "$PR_URL"
gh pr review --approve "$PR_URL"
18 changes: 11 additions & 7 deletions .github/workflows/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ runs:
- uses: irgaly/setup-mint@v1
- uses: dcarbone/[email protected]

# - name: "Xcode Cache"
- name: "Xcode Cache"
if: contains(inputs.os, 'macos')
uses: irgaly/xcode-cache@v1
with:
key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }}
restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-

# - name: "Set IgnoreFileSystemDeviceInodeChanges flag"
# if: contains(inputs.os, 'macos')
# uses: irgaly/xcode-cache@v1
# with:
# key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }}
# restore-keys: |
# xcode-cache-deriveddata-${{ github.workflow }}-

# shell: bash
# run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES

- name: "Swift Package Manager Cache"
uses: actions/cache@v3
with:
Expand Down

0 comments on commit c5ecccc

Please sign in to comment.