Skip to content

Commit

Permalink
Merge pull request #1062 from Tachi107/ci-autopkgtest-awk
Browse files Browse the repository at this point in the history
ci(autopkgtest): use awk to get the upstream version
  • Loading branch information
kiplingw authored Apr 25, 2022
2 parents 7397770 + e72fb1f commit 205ed45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/autopkgtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Create .orig tarball
run: |
repo_name=$(echo ${{ github.repository }} | cut -d / -f 2)
debian_version=$(dpkg-parsechangelog --show-field Version | cut -d - -f 1)
debian_version=$(dpkg-parsechangelog --show-field Version | awk -F - 'sub(FS $NF,x)')
cd ..
tar --exclude-vcs --exclude=debian -cvzf pistache_"$debian_version".orig.tar.gz "$repo_name"
Expand Down

0 comments on commit 205ed45

Please sign in to comment.