Skip to content

Commit 8bc7eec

Browse files
committed
Sync with microG unofficial installer
1 parent 4739dd8 commit 8bc7eec

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.github/workflows/auto-nightly.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ jobs:
183183
prerelease: true
184184
make_latest: false
185185
overwrite_files: false
186-
preserve_order: true
187186
files: |
188187
${{ steps.build.outputs.ZIP_FOLDER }}/*.zip*
189188
${{ steps.attest.outputs.bundle-path }}

.github/workflows/auto-release-from-tag.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
cancel-in-progress: false
2626
permissions:
2727
contents: write # Needed to create a release
28+
id-token: write # Needed to attest build provenance
29+
attestations: write # Needed to attest build provenance
2830

2931
steps:
3032
- name: "Checkout sources"
@@ -50,6 +52,7 @@ jobs:
5052
subject-path: "${{ steps.build.outputs.ZIP_FOLDER }}/*.zip"
5153
show-summary: false
5254
- name: "ZIP info"
55+
id: "info"
5356
run: |
5457
# Retrieve informations...
5558
ZIP_FOLDER='${{ steps.build.outputs.ZIP_FOLDER }}'
@@ -73,6 +76,14 @@ jobs:
7376
printf '%s\n' "::notice::MD5: ${ZIP_MD5:-Missing}"
7477
printf '%s\n' "::notice::Attestation: ${ZIP_ATTESTATION:-Missing}"
7578
: "${ZIP_FOLDER:?}" || exit "${?}"
79+
# Preparing attestation file...
80+
old_attest_file='${{ steps.attest.outputs.bundle-path }}'
81+
if test -n "${old_attest_file?}"; then
82+
new_attest_file="./.tmp/release-$(basename -- "${old_attest_file:?}")" || exit "${?}"
83+
mkdir -p -- './.tmp' || exit "${?}"
84+
cp -f -T -- "${old_attest_file:?}" "${new_attest_file:?}" || exit "${?}"
85+
printf 'ZIP_ATTESTATION_FILE=%s\n' "${new_attest_file:?}" 1>> "${GITHUB_OUTPUT?}"
86+
fi
7687
- name: "Create release"
7788
uses: softprops/action-gh-release@v2
7889
if: "${{ github.run_attempt == '1' && steps.build.outputs.ZIP_IS_ALPHA == 'false' && steps.build.outputs.ZIP_BUILD_TYPE_SUPPORTED == 'true' }}"
@@ -85,8 +96,7 @@ jobs:
8596
generate_release_notes: true
8697
draft: false
8798
overwrite_files: false
88-
preserve_order: true
8999
files: |
90100
${{ steps.build.outputs.ZIP_FOLDER }}/*.zip*
91-
${{ steps.attest.outputs.bundle-path }}
101+
${{ steps.info.outputs.ZIP_ATTESTATION_FILE }}
92102
fail_on_unmatched_files: true

.github/workflows/tag-and-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,5 @@ jobs:
7474
tag-name: "${{ needs.create-tag.outputs.tag-name }}"
7575
permissions:
7676
contents: write # Needed to create a release
77+
id-token: write # Needed to attest build provenance
78+
attestations: write # Needed to attest build provenance

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: none
22
# SPDX-License-Identifier: CC0-1.0
33

4-
# Files to always ignore
4+
# Always ignore
55
/coverage/
66
/dependency-graph-reports/
77
/.ssh/

zip-content/zip-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ command 1> /dev/null -v 'printf' || {
7070
else
7171
NO_COLOR=1
7272

73+
# shellcheck disable=SC2329 # IGNORE: Detection bug
7374
printf()
7475
{
7576
case "${1-unset}" in

0 commit comments

Comments
 (0)