Skip to content

Update GHC

Update GHC #74

Workflow file for this run

name: Update GHC
on:
schedule:
# run weekly on Thursday
- cron: '0 15 * * THU'
workflow_dispatch: # allows manual triggering
jobs:
update_ghc:
name: GHC ${{ matrix.ghc }} Update
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ghc:
- '9.2'
- '9.4'
- '9.6'
- '9.8'
- '9.10'
steps:
- uses: actions/checkout@v4
with:
ref: master
- uses: cachix/install-nix-action@V27
with:
nix_path: nixpkgs=nixpkgs/default.nix
- name: Fetch updates
id: ghc_update
run: nix shell 'nixpkgs#bazel-buildtools' 'nixpkgs#python3' --command python .github/update-ghc.py ${{ matrix.ghc }}
- name: Create Pull Request
if: steps.ghc_update.outputs.latest != ''
uses: peter-evans/create-pull-request@v7
with:
commit-message: "Add GHC bindist version ${{ steps.ghc_update.outputs.latest }}"
title: "[update] GHC ${{ matrix.ghc }}"
branch: "automation/update-ghc-${{ matrix.ghc }}"
base: master
token: "${{ secrets.PR_TRIGGER_TOKEN }}"