Skip to content

Commit

Permalink
Update reproducible-build workflow
Browse files Browse the repository at this point in the history
- trigger on published release
- add authentication header to wget request
  • Loading branch information
Drumber committed Jun 10, 2024
1 parent 4c36295 commit a979b2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reproducible-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
description: URL to the release apk
required: true
release:
types: [ created ]
types: [ published ]

permissions:
contents: read
Expand Down Expand Up @@ -36,6 +36,6 @@ jobs:
echo "asset_url=${{ github.event.inputs.assetUrl }}" >> "$GITHUB_ENV"
fi
- name: Download release asset
run: wget -O upstream.apk "$asset_url"
run: wget --header "Bearer ${{ secrets.GITHUB_TOKEN }}" -O upstream.apk "$asset_url"
- name: Compare APKs
run: apksigcopier compare upstream.apk --unsigned unsigned.apk && echo OK

0 comments on commit a979b2f

Please sign in to comment.