Skip to content

Commit

Permalink
[test] 测试ci流程
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarcis-cy committed Jun 25, 2024
1 parent 2c0e277 commit 3c7333e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2 # 获取足够的提交历史

- name: Download latest release of xlint_linux_amd64
run: |
Expand All @@ -28,9 +30,9 @@ jobs:
run: |
FINGER_CHANGED=false
POC_CHANGED=false
PREV_SHA=$(git rev-parse HEAD~1)
git diff --name-only $PREV_SHA ${{ github.sha }} | grep '^finger/' && FINGER_CHANGED=true || true
git diff --name-only $PREV_SHA ${{ github.sha }} | grep '^poc/' && POC_CHANGED=true || true
PREV_SHA=$(git rev-list -n 1 HEAD^1)
git diff --name-only $PREV_SHA $GITHUB_SHA | grep '^finger/' && FINGER_CHANGED=true || true
git diff --name-only $PREV_SHA $GITHUB_SHA | grep '^poc/' && POC_CHANGED=true || true
if $FINGER_CHANGED && $POC_CHANGED; then
./xlint_linux_amd64 -f "./finger/*.yml" -f "./poc/*.yml" | tee xlint_output
Expand Down
2 changes: 1 addition & 1 deletion finger/Azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ manual: false
detail:
fingerprint:
name: Azure
fofa: header="azure-webrole-instance"
fofa: header="azure-webrole-instance-id"
transport: http
rules:
r0:
Expand Down

0 comments on commit 3c7333e

Please sign in to comment.