Skip to content

Commit

Permalink
Update workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
kavplex committed Jun 24, 2024
1 parent f9f1b1c commit b560467
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/get-update-targets/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ runs:
id: list-targets
shell: bash
run: |
if [[ "${{ runner.debug }}" == '1' ]]; then
set -x
fi
# Convert the packages listing into JSON.
sudo apt-get install dasel -y
pkg_list="$(curl -L 'https://github.com/makedeb/prebuilt-mpr/raw/main/packages.toml' | dasel -r toml -w json)"
Expand Down Expand Up @@ -64,7 +68,7 @@ runs:
# If we're packaging for `dasel` we have to uninstall it, as it'll mess with our checks below otherwise.
if [[ "${{ inputs.pkgbase }}" == 'dasel' ]]; then
sudo apt-get uninstall dasel -y
sudo apt-get purge dasel -y
fi
# We overwrite files in /etc/apt during this, so backup the directory for restoration after we're done.
Expand Down Expand Up @@ -139,7 +143,7 @@ runs:
fi
# The package lines.
mapfile -t apt_output < <(apt list '${{ inputs.pkgbase }}' 2> /dev/null | grep '^[a-z/]* ')
mapfile -t apt_output < <(apt list '${{ inputs.pkgbase }}' 2> /dev/null | grep '^[a-z/,-]* ')
apt_version="$(echo "${apt_output[0]}" | awk '{print $2}')"
Expand Down

0 comments on commit b560467

Please sign in to comment.