We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ebcdef commit 2a61dc8Copy full SHA for 2a61dc8
.github/workflows/project-check.yml
@@ -38,6 +38,16 @@ jobs:
38
with:
39
path: ${{ env.GOPATH }}/src/github.com/fluid-cloudnative/fluid
40
41
+ - name: Check rebase
42
+ run: |
43
+ git fetch origin master
44
+ # Check if the current branch contains the latest master commit
45
+ MASTER_COMMIT=$(git rev-parse origin/master)
46
+ if ! git merge-base --is-ancestor $MASTER_COMMIT HEAD; then
47
+ echo "::error ::Current branch is not up-to-date with master. Please rebase."
48
+ exit 1
49
+ fi
50
+
51
- name: Lint golang code
52
uses: golangci/golangci-lint-action@v6
53
0 commit comments