Skip to content

Commit f33b6d3

Browse files
authored
refactor: use coatl-dev/actions@v4 (#69)
1 parent 0e0e921 commit f33b6d3

File tree

3 files changed

+27
-13
lines changed

3 files changed

+27
-13
lines changed

.github/workflows/pip-compile-upgrade.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ on:
1212
required: false
1313
type: string
1414
default: '3.13'
15+
use-config:
16+
description: >-
17+
Whether to read configuration from TOML file.
18+
required: false
19+
type: string
20+
default: 'no'
21+
config-file:
22+
description: >-
23+
The location of the configuration file.
24+
required: false
25+
type: string
26+
default: '.pip-tools.toml'
1527
pr-create:
1628
description: >-
1729
Whether to create a Pull Request.
@@ -62,23 +74,25 @@ jobs:
6274
- name: Checkout repo
6375
uses: actions/checkout@v4
6476

65-
- name: Update requirements
66-
id: pip-compile
67-
uses: coatl-dev/actions/pip-compile@v3
77+
- name: Upgrade requirements
78+
id: pip-compile-upgrade
79+
uses: coatl-dev/actions/pip-compile-upgrade@v4
6880
with:
6981
path: ${{ inputs.path }}
7082
python-version: '${{ inputs.python-version }}'
83+
use-config: ${{ inputs.use-config }}
84+
config-file: ${{ inputs.config-file }}
7185

7286
- name: Detect changes
7387
id: git-diff
74-
uses: coatl-dev/actions/simple-git-diff@v3
88+
uses: coatl-dev/actions/simple-git-diff@v4
7589
with:
7690
path: ${{ inputs.path }}
7791

7892
- name: Import GPG key
7993
if: ${{ steps.git-diff.outputs.diff == 'true' && inputs.pr-create == 'yes' && inputs.sign-commits == 'yes' }}
8094
id: gpg-import
81-
uses: coatl-dev/actions/gpg-import@v3
95+
uses: coatl-dev/actions/gpg-import@v4
8296
with:
8397
passphrase: ${{ secrets.gpg-sign-passphrase }}
8498
private-key: ${{ secrets.gpg-sign-private-key }}
@@ -103,7 +117,7 @@ jobs:
103117
104118
- name: Create pull request
105119
if: ${{ steps.git-diff.outputs.diff == 'true' && inputs.pr-create == 'yes' }}
106-
uses: coatl-dev/actions/pr-create@v3
120+
uses: coatl-dev/actions/pr-create@v4
107121
with:
108122
gh-token: ${{ secrets.gh-token }}
109123
auto-merge: ${{ inputs.pr-auto-merge }}

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ jobs:
9393

9494
- name: Detect changes
9595
id: git-diff
96-
uses: coatl-dev/actions/simple-git-diff@v3
96+
uses: coatl-dev/actions/simple-git-diff@v4
9797
with:
9898
path: .pre-commit-config.yaml
9999

100100
- name: Import GPG key
101101
if: ${{ steps.git-diff.outputs.diff == 'true' && inputs.pr-create == 'yes' && inputs.sign-commits == 'yes' }}
102102
id: gpg-import
103-
uses: coatl-dev/actions/gpg-import@v3
103+
uses: coatl-dev/actions/gpg-import@v4
104104
with:
105105
passphrase: ${{ secrets.gpg-sign-passphrase }}
106106
private-key: ${{ secrets.gpg-sign-private-key }}
@@ -126,7 +126,7 @@ jobs:
126126
127127
- name: Create Pull Request
128128
if: ${{ steps.git-diff.outputs.diff == 'true' && inputs.pr-create == 'yes' }}
129-
uses: coatl-dev/actions/pr-create@v3
129+
uses: coatl-dev/actions/pr-create@v4
130130
with:
131131
gh-token: ${{ secrets.gh-token }}
132132
auto-merge: ${{ inputs.pr-auto-merge }}

.github/workflows/uv-pip-compile-upgrade.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,21 @@ jobs:
6464

6565
- name: Update requirements
6666
id: pip-compile
67-
uses: coatl-dev/actions/uv-pip-compile@v3
67+
uses: coatl-dev/actions/uv-pip-compile-upgrade@v4
6868
with:
6969
path: ${{ inputs.path }}
7070
python-version: '${{ inputs.python-version }}'
7171

7272
- name: Detect changes
7373
id: git-diff
74-
uses: coatl-dev/actions/simple-git-diff@v3
74+
uses: coatl-dev/actions/simple-git-diff@v4
7575
with:
7676
path: ${{ inputs.path }}
7777

7878
- name: Import GPG key
7979
if: ${{ steps.git-diff.outputs.diff == 'true' && inputs.pr-create == 'yes' && inputs.sign-commits == 'yes' }}
8080
id: gpg-import
81-
uses: coatl-dev/actions/gpg-import@v3
81+
uses: coatl-dev/actions/gpg-import@v4
8282
with:
8383
passphrase: ${{ secrets.gpg-sign-passphrase }}
8484
private-key: ${{ secrets.gpg-sign-private-key }}
@@ -103,7 +103,7 @@ jobs:
103103
104104
- name: Create pull request
105105
if: ${{ steps.git-diff.outputs.diff == 'true' && inputs.pr-create == 'yes' }}
106-
uses: coatl-dev/actions/pr-create@v3
106+
uses: coatl-dev/actions/pr-create@v4
107107
with:
108108
gh-token: ${{ secrets.gh-token }}
109109
auto-merge: ${{ inputs.pr-auto-merge }}

0 commit comments

Comments
 (0)