Skip to content

Commit 075ad1c

Browse files
authored
Nit: Make ppa-automation workflow re-runnable (#11034)
* Make ppa-automation workflow re-runnable * Add --format=gnu when building source bundle
1 parent 8506384 commit 075ad1c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ppa-automation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Build source bundle
7373
shell: bash
74-
run: ./scripts/linux/script.sh --source --gitref ${GITHUB_REF}
74+
run: ./scripts/linux/script.sh --source --gitref ${GITHUB_REF} --version ${GITHUB_RUN_ATTEMPT}
7575

7676
- name: Import signing keys
7777
id: keys
@@ -109,7 +109,7 @@ jobs:
109109
110110
PACKAGE_SOURCE_NAME=$(dpkg-parsechangelog -l mozillavpn-source/debian/changelog -S Source)
111111
PACKAGE_BASE_VERSION=$(dpkg-parsechangelog -l mozillavpn-source/debian/changelog -S Version)
112-
PACKAGE_DIST_VERSION=${PACKAGE_BASE_VERSION}-${dist}1
112+
PACKAGE_DIST_VERSION=${PACKAGE_BASE_VERSION}-${dist}${GITHUB_RUN_ATTEMPT}
113113
114114
dch -c $(pwd)/mozillavpn-source/debian/changelog -v ${PACKAGE_DIST_VERSION} -D ${dist} "Release for ${dist}"
115115
(cd mozillavpn-source && dpkg-buildpackage --build=source --sign-key=$KEYID -sa --no-check-builddeps)

scripts/linux/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ rm -rf $WORKDIR/linux/debian || die "Failed"
152152
print G "done."
153153

154154
printn Y "Archiving the source code... "
155-
TAR_OPTIONS="--mtime=$(git log -1 --format=%cI) --owner=root:0 --group=root:0 --sort=name"
155+
TAR_OPTIONS="--mtime=$(git log -1 --format=%cI) --owner=root:0 --group=root:0 --sort=name --format=gnu"
156156
LC_ALL=C tar cfz mozillavpn_$SHORTVERSION.orig.tar.gz $TAR_OPTIONS $WORKDIR || die "Failed"
157157
print G "done."
158158

0 commit comments

Comments
 (0)