Skip to content

Commit

Permalink
Update workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
kavplex committed Oct 12, 2024
1 parent d4c8244 commit 89633d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 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 All @@ -76,7 +80,7 @@ runs:
# Set up needed variables.
LATEST_VERSION="$(curl -s 'https://mpr.${{ inputs.makedeb_url }}/packages-meta-ext-v2.json.gz' | jq -r '.[] | select(.PackageBase=="${{ inputs.pkgbase }}").Version')"
DISTROS=('focal' 'jammy' 'lunar' 'mantic' 'noble' 'bullseye' 'bookworm')
DISTROS=('focal' 'jammy' 'lunar' 'mantic' 'noble' 'oracular' 'bullseye' 'bookworm')
ARCHS=('amd64' 'arm64')
OUTPUT='[]'
Expand Down Expand Up @@ -139,13 +143,13 @@ 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}')"
if [[ "${apt_version}" != "${LATEST_VERSION}" ]]; then
case "${distro}" in
focal|jammy|lunar|mantic|noble) tag="ubuntu-${distro}" ;;
focal|jammy|lunar|mantic|noble|oracular) tag="ubuntu-${distro}" ;;
bullseye|bookworm) tag="debian-${distro}" ;;
esac
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install ProGet CLI
run: sudo apt-get install pg -y
- name: Download artifacts
uses: dawidd6/action-download-artifact@v3
uses: dawidd6/action-download-artifact@v6
with:
pr: "${{ github.event.pull_request.number }}"
workflow: build-pkg.yml
Expand Down

0 comments on commit 89633d5

Please sign in to comment.