Comments (6)
Adding this part is giving me error "fatal: Not a valid object name master"
DIFF_BASE: ${{ github.base_ref }}
from action-swiftlint.
Providing paths to SwiftLint via commandline will override .swiftlint.yml
.
If you use excluded
, you may be able to solve it using the --force-exclude
option:
- name: GitHub Action for SwiftLint (Only files changed in the PR)
uses: norio-nomura/action-swiftlint
with:
args: --force-exclude
env:
DIFF_BASE: ${{ github.base_ref }}
from action-swiftlint.
Thank you again Norio-san, it seems to be working now 🙌
from action-swiftlint.
from action-swiftlint.
This solution works, Thank you so much.
from action-swiftlint.
Adding this part is giving me error "fatal: Not a valid object name master"
DIFF_BASE: ${{ github.base_ref }}
@tumata, I fetch the base ref manually. And use my custom action-swiftlint, which check the changed files between HEAD(set from actions/checkout, a merged PR)
and base_ref(master)
. It works for me.
...
on: pull_request
...
- uses: actions/checkout@v2
- name: Fetch base ref
run: |
git fetch --prune --no-tags --depth=1 origin +refs/heads/${{ github.base_ref }}:refs/heads/${{ github.base_ref }}
- name: SwiftLint (Only files changed in the PR)
uses: henry2423/action-swiftlint@Fix-PR-Lint
with:
args: --force-exclude --strict
env:
DIFF_BASE: ${{ github.base_ref }}
DIFF_HEAD: HEAD
from action-swiftlint.
Related Issues (20)
- Run swiftlint only on changed files HOT 1
- Action posts only 10 Warnings HOT 2
- Strict mode HOT 1
- Read .swiftlint.yml rules HOT 4
- Pinned swiftlint version support HOT 3
- Action fails after running swiftlint HOT 1
- Swiftlint is still checking unchanged files HOT 15
- SwiftLint checking Pods even though .swiftlint.yml excludes them. HOT 1
- Support for paths or filenames with spaces HOT 1
- Using actions/checkout@v1 downloading the repo source Everytime HOT 2
- Checking only Files in PR - .swiftlint.yml is not respected HOT 1
- SwiftLint has changed calculation of the root path HOT 1
- Support PR reviews HOT 1
- Swiftlint and .swiftlint.yml in submodule
- Support running on macos runners HOT 4
- Can't run GitHub Action for SwiftLint (Only files changed in the PR) HOT 2
- Can't use SwiftLint file in repo HOT 2
- Won't work on Github CI HOT 1
- Support `pull_request` event HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-swiftlint.