Skip to content

Try GHC update

Try GHC update #4

Workflow file for this run

name: Update GHC
on:
push:
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'
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
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@v5
with:
commit-message: "[automation] Add GHC version "
title: "[update] GHC ${{ matrix.ghc }}"
branch: "automation/update-ghc-${{ matrix.ghc }}"
base: master
# TODO: needs a token so that workflows for the PR get triggered
#token: "${{ secrets.PR_TOKEN }}"