From fbcafffcdf855e8e25574e5031ddefd9cac571a8 Mon Sep 17 00:00:00 2001 From: yuncheol-AHN <70050038+yuncheol-AHN@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:51:20 +0900 Subject: [PATCH] Create lint.yml --- .github/workflows/lint.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..99b9e5dd --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,33 @@ +name: auto PR swiftLint + +on: + pull_request: + branches: [ develop ] + paths: + - '.github/workflows/swiftlint.yml' + - '.swiftlint.yml' + - '**/*.swift' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: github action for swiftlint + uses: norio-nomura/action-swiftlint@master + env: + DIFF_BASE: ${{ github.base_ref }} + + - name: Add PR Comment + if: ${{ success() }} + uses: mshick/add-pr-comment@v1 + with: + message: | + ## All File Checked ✅ + | ✅ | Auto Pull Request SwiftLint Success!!!! | + |--- |---------------------------------------------- | + repo-token: ${{ secrets.ACCESS_TOKEN }} + repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens + allow-repeats: false # This is the default