Skip to content

Commit

Permalink
chore(ci): Renamed periodic workflow to schedule
Browse files Browse the repository at this point in the history
Signed-off-by: txtsd <code@ihavea.quest>
  • Loading branch information
txtsd committed Oct 22, 2023
1 parent ad743f1 commit 8b7072f
Showing 1 changed file with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Check for new Releases
name: Schedule
on:
push:
branches:
- main
- ci
schedule:
- cron: '0 0,6,12,18 * * *'
workflow_dispatch:
Expand All @@ -23,14 +22,15 @@ jobs:
list: ${{ steps.releases.outputs.list_updates }}

steps:
- name: Install dependencies
- name: Update system and install dependencies
run: |
pacman-key --init
pacman -Syu --noconfirm fd jq wget
- name: Download bumper binary
run: |
cd $HOME
wget "https://github.com/bcyran/bumper/releases/download/v1.0.0/bumper-1.0.0-linux-amd64.tar.gz"
wget 'https://github.com/bcyran/bumper/releases/download/v1.0.0/bumper-1.0.0-linux-amd64.tar.gz'
tar xf bumper-1.0.0-linux-amd64.tar.gz
chmod +x bumper
Expand All @@ -56,7 +56,8 @@ jobs:
done
echo "list_updates=$(jq -cn '$ARGS.positional' --args "${updates[@]}")" >> $GITHUB_OUTPUT
now_build:
build:
name: Build
needs: release_check
runs-on: ubuntu-latest
container: archlinux:base-devel
Expand Down Expand Up @@ -90,13 +91,17 @@ jobs:
run: |
chown -R dev: .
- name: Initialize gpg keyring
run: |
runuser -u dev -- gpg --list-keys
- name: Install yay
run: |
runuser -u dev -- git clone https://aur.archlinux.org/yay.git
cd yay
runuser -u dev -- makepkg -csri --noconfirm
- name: Test -- Install dependencies from AUR
- name: Install package dependencies from AUR
run: |
cd ${{ matrix.package }}
pacman -Ssq > pkglist
Expand All @@ -122,16 +127,7 @@ jobs:
echo ${packages[@]}
runuser -u dev -- yay -S --noconfirm --asdeps ${packages[@]}
- name: Test -- Add gpg keys
run: |
cd ${{ matrix.package }}
source PKGBUILD
for key in ${validpgpkeys[@]}
do
runuser -u dev -- gpg --recv-keys $key
done
- name: Test -- Build and install package
- name: Build and install package
run: |
cd ${{ matrix.package }}
runuser -u dev -- makepkg -csri --noconfirm
Expand Down

0 comments on commit 8b7072f

Please sign in to comment.