From 2c0e277e223f73837e6c15b4e43404c7aa83e839 Mon Sep 17 00:00:00 2001 From: Jarcis-cy Date: Tue, 25 Jun 2024 13:29:33 +0800 Subject: [PATCH] =?UTF-8?q?[test]=20=E6=B5=8B=E8=AF=95ci=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint.yml | 5 +++-- finger/Azure.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1335655..d93645e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,8 +28,9 @@ jobs: run: | FINGER_CHANGED=false POC_CHANGED=false - git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^finger/' && FINGER_CHANGED=true || true - git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^poc/' && POC_CHANGED=true || true + 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 if $FINGER_CHANGED && $POC_CHANGED; then ./xlint_linux_amd64 -f "./finger/*.yml" -f "./poc/*.yml" | tee xlint_output diff --git a/finger/Azure.yml b/finger/Azure.yml index 94e3078..7a76008 100644 --- a/finger/Azure.yml +++ b/finger/Azure.yml @@ -3,7 +3,7 @@ manual: false detail: fingerprint: name: Azure - fofa: header="azure-webrole-instance-id" + fofa: header="azure-webrole-instance" transport: http rules: r0: