forked from Sigmapitech/glados
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 983 Bytes
/
cabal-dump.yml
File metadata and controls
37 lines (31 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Bump Cabal Versions
on:
pull_request:
types: [closed]
jobs:
bump-version:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Changed Files
id: changed-files
uses: tj-actions/changed-files@v44
with:
separator: ","
- name: Run Version Bump Script
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
PR_LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
run: |
python3 scripts/cabal-bump.py "$ALL_CHANGED_FILES" "$PR_LABELS"
- name: Commit and Push Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: bump version [skip ci]"
branch: ${{ github.event.pull_request.base.ref }}