mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-01 04:31:53 -07:00
Bumps [haskell/actions](https://github.com/haskell/actions) from 1 to 2. - [Release notes](https://github.com/haskell/actions/releases) - [Commits](https://github.com/haskell/actions/compare/v1...v2)
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Packdeps
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# Run every Saturday
|
|
- cron: '0 3 * * 6'
|
|
|
|
jobs:
|
|
packdeps:
|
|
name: Packdeps
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone project
|
|
uses: actions/checkout@v3
|
|
- name: Setup Haskell
|
|
uses: haskell/actions/setup@v2
|
|
with:
|
|
# packdeps doesn't build with newer as of 2021-10
|
|
ghc-version: '8.8'
|
|
- name: Install packdeps
|
|
run: |
|
|
set -ex
|
|
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
|
|
cabal install packdeps
|
|
- name: Check package bounds (all)
|
|
continue-on-error: true
|
|
run: |
|
|
set -ex
|
|
packdeps \
|
|
--exclude X11 \
|
|
*.cabal
|
|
- name: Check package bounds (preferred)
|
|
run: |
|
|
set -ex
|
|
packdeps \
|
|
--preferred \
|
|
--exclude X11 \
|
|
*.cabal
|
|
|
|
workflow-keepalive:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Re-enable workflow
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
gh api -X PUT repos/${{ github.repository }}/actions/workflows/packdeps.yml/enable
|