From dfef6d8a6a670d43cfc112f72f4db5d089264312 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 15 Apr 2024 09:32:13 +0300 Subject: [PATCH] Replace deprecated danger-swift-with-swiftlint docker image --- .github/workflows/danger.yml | 17 +++++++++-------- .github/workflows/translations-pr.yml | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index a894626f5..c689726f9 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -5,17 +5,18 @@ on: [pull_request] jobs: build: name: Danger - runs-on: ubuntu-latest + runs-on: macos-14 steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: ~/.danger-swift - key: danger-swift-cache-key + - name: Setup environment + run: + brew install danger/tap/danger-swift - name: Danger - uses: docker://ghcr.io/danger/danger-swift-with-swiftlint:3.15.0 - env: + run: + danger-swift ci + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/translations-pr.yml b/.github/workflows/translations-pr.yml index ea998900a..442825409 100644 --- a/.github/workflows/translations-pr.yml +++ b/.github/workflows/translations-pr.yml @@ -7,7 +7,7 @@ on: jobs: open-translations-pr: - runs-on: macos-13 + runs-on: macos-14 # Skip in forks if: github.repository == 'element-hq/element-x-ios' steps: