-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warnings related to: - Version number - File too long - No contributor name - Extra whitespace around name
- Loading branch information
1 parent
918af21
commit 9eb66d6
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,10 +55,20 @@ runs: | |
DEBIAN_FRONTEND=noninteractive sudo apt install -y devscripts | ||
echo "::endgroup::" | ||
echo "::group::Append commit SHA to local version" | ||
echo "::group::Create local version with commit and docker container" | ||
cd '${{ inputs.source-dir }}' | ||
sanitized_docker=$( echo "${{ inputs.docker-image }}" | sed 's/://' ) | ||
debchange --local "+${sanitized_docker}+${{ github.sha }}" "Github build. Job id: ${{ github.run_id }}. Attempt: ${{ github.run_number }}." | ||
# Sanitize the docker name so that it stick to debian policy | ||
# https://www.debian.org/doc/debian-policy/ch-controlfields.html#version | ||
sanitized_docker=$( echo "${{ inputs.docker-image }}" | sed -r 's/[^a-zA-Z0-9.+~]+/+/g' ) | ||
# Short commit to avoid "package-has-long-file-name" | ||
commit=$(echo ${{ github.sha }} | cut -c1-8) | ||
export DEBFULLNAME="GitHub actions runner" | ||
export DEBEMAIL="[email protected]" | ||
debchange --local "~${sanitized_docker}+${commit}" "Github build. Run id: ${{ github.run_id }}. Run number: ${{ github.run_number }}." | ||
echo "::endgroup::" | ||
echo "::group::Parsing name and version" | ||
|