update actions

This commit is contained in:
Muhan Li 2024-05-02 12:58:19 +08:00
parent 679be9a83c
commit 4355bffe65
2 changed files with 15 additions and 15 deletions

View File

@ -3,7 +3,7 @@ name: Continuous Delivery
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 1/10 * *" - cron: "0 0 1/16 * *"
push: push:
branches: branches:
- "main" - "main"
@ -19,9 +19,9 @@ jobs:
fetch-depth: 2 fetch-depth: 2
- name: Setup Python environment - name: Setup Python environment
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.11 python-version: "3.12"
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
@ -35,8 +35,8 @@ jobs:
- name: Setup Haskell and Cabal - name: Setup Haskell and Cabal
uses: haskell-actions/setup@v2 uses: haskell-actions/setup@v2
with: with:
ghc-version: 9.2.8 ghc-version: "9.6"
cabal-version: 3.10.1.0 cabal-version: "3.10"
- name: Build parser - name: Build parser
run: cabal build run: cabal build
@ -50,5 +50,5 @@ jobs:
file_pattern: README.md docs/* data/* file_pattern: README.md docs/* data/*
commit_message: update calendar data automatically commit_message: update calendar data automatically
commit_user_name: Muhan Li commit_user_name: Muhan Li
commit_user_email: limuhan@msn.com commit_user_email: 77625954+muhav@users.noreply.github.com
commit_author: Muhan Li <limuhan@msn.com> commit_author: Muhan Li <77625954+muhav@users.noreply.github.com>

View File

@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} - name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
@ -39,11 +39,11 @@ jobs:
strategy: strategy:
matrix: matrix:
ghc: ["9.2.8", "9.6", "latest"] ghc: ["9.6", "9.8", "latest"]
cabal: ["3.10.1.0", "3.10", "latest"] cabal: ["3.10", "latest"]
exclude: include:
- ghc: latest - ghc: "9.2.8"
cabal: 3.10.1.0 cabal: "3.10.1.0"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -105,9 +105,9 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python Environment - name: Set up Python Environment
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.12 python-version: "3.12"
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |