Skip to content

Commit

Permalink
Only commit new fingerprints
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorsm committed Apr 25, 2024
1 parent 9816973 commit 8131099
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/fingerprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ jobs:
- name: Run gofmt on fingerprints.go
run: gofmt -s -w ./pkg/fingerprints/fingerprints.go

- name: Move new fingerprints to repo
run: |
mv ${{ runner.temp }}/fingerprints-captures/* ./fingerprints-captures/
ls -R fingerprints-captures
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
Expand All @@ -116,9 +111,16 @@ jobs:

- name: Commit fingerprints
run: |
git config user.name github-actions
git config user.email [email protected]
git add ./fingerprints-captures
git add ./pkg/fingerprints/fingerprints.go
git commit -m "Add fresh fingerprints"
git push
FILE="capture-${{matrix.browser}}-${{steps.browser.outputs.version}}.pcap"
if [ -e ./fingerprints-captures/"$FILE" ]; then
echo "pcap $FILE already exists"
else
mv ${{ runner.temp }}/fingerprints-captures/* ./fingerprints-captures/
ls -R fingerprints-captures
git config user.name github-actions
git config user.email [email protected]
git add ./fingerprints-captures
git add ./pkg/fingerprints/fingerprints.go
git commit -m "Add fresh fingerprints"
git push
fi

0 comments on commit 8131099

Please sign in to comment.