Skip to content

Commit 436b5d8

Browse files
authored
chore: Use ghactl (#98)
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
1 parent 38584cb commit 436b5d8

4 files changed

Lines changed: 35 additions & 53 deletions

File tree

.github/workflows/dependabot-changelog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ jobs:
3232
commit-message: "chore: Update changelog for Dependabot"
3333
changelog: ./CHANGELOG.md
3434
section-header: "Changed"
35-
changelog-entry-pattern: "Update _[dep]_ from `[old]` to `[new]`. ([pr-link]) _@dependabot_"
35+
changelog-entry-pattern: "Update _[dep]_ from `[old]` to `[new]`. ([pr-link]) @dependabot"
3636
push-changes: true

.github/workflows/validate-gh-action.yaml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,21 @@ jobs:
5959
exit 1
6060
fi
6161
62-
- name: Install auto-doc
63-
uses: action-stars/install-tool-from-github-release@1fa61c3bea52eca3bcdb1f5c961a3b113fe7fa54 # v0.2.6
64-
if: inputs.auto_doc
62+
- name: Install ghactl
63+
uses: action-stars/ghactl-action@c556c5f2cfcb1f6643bdecf1bf601c706954a37a # v0.0.1
6564
with:
66-
github_token: ${{ github.token }}
67-
owner: tj-actions
68-
repository: auto-doc
69-
arch_amd64: x86_64
70-
os_linux: Linux
71-
check_command: auto-doc --help
65+
token: ${{ github.token }}
7266
version: latest
7367

68+
- name: Install tools
69+
env:
70+
GITHUB_TOKEN: ${{ github.token }}
71+
run: |
72+
set -euo pipefail
73+
74+
ghactl tool install --owner tj-actions --repo auto-doc --version latest
75+
ghactl tool install --owner google --repo yamlfmt --version latest
76+
7477
- name: Run auto-doc check
7578
if: inputs.auto_doc
7679
run: |
@@ -83,18 +86,6 @@ jobs:
8386
exit 1
8487
fi
8588
86-
- name: Install yamlfmt
87-
uses: action-stars/install-tool-from-github-release@1fa61c3bea52eca3bcdb1f5c961a3b113fe7fa54 # v0.2.6
88-
if: inputs.yamlfmt
89-
with:
90-
github_token: ${{ github.token }}
91-
owner: google
92-
repository: yamlfmt
93-
arch_amd64: x86_64
94-
os_linux: Linux
95-
check_command: yamlfmt -version
96-
version: latest
97-
9889
- name: Run yamlfmt check
9990
if: inputs.yamlfmt
10091
run: |

.github/workflows/validate-gh-workflows.yaml

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,25 @@ jobs:
4949
with:
5050
fetch-depth: 0
5151

52-
- name: Install actionlint
53-
uses: action-stars/install-tool-from-github-release@1fa61c3bea52eca3bcdb1f5c961a3b113fe7fa54 # v0.2.6
52+
- name: Install ghactl
53+
uses: action-stars/ghactl-action@c556c5f2cfcb1f6643bdecf1bf601c706954a37a # v0.0.1
5454
with:
55-
github_token: ${{ github.token }}
56-
owner: rhysd
57-
repository: actionlint
58-
check_command: actionlint -version
55+
token: ${{ github.token }}
5956
version: latest
6057

58+
- name: Install tools
59+
env:
60+
GITHUB_TOKEN: ${{ github.token }}
61+
run: |
62+
set -euo pipefail
63+
64+
ghactl tool install --owner rhysd --repo actionlint --version latest
65+
ghactl tool install --owner tj-actions --repo auto-doc --version latest
66+
ghactl tool install --owner google --repo yamlfmt --version latest
67+
6168
- name: Run actionlint
6269
run: actionlint -shellcheck=shellcheck
6370

64-
- name: Install auto-doc
65-
uses: action-stars/install-tool-from-github-release@1fa61c3bea52eca3bcdb1f5c961a3b113fe7fa54 # v0.2.6
66-
if: inputs.auto_doc
67-
with:
68-
github_token: ${{ github.token }}
69-
owner: tj-actions
70-
repository: auto-doc
71-
arch_amd64: x86_64
72-
os_linux: Linux
73-
check_command: auto-doc --help
74-
version: latest
75-
7671
- name: Run auto-doc check
7772
if: inputs.auto_doc
7873
run: |
@@ -106,18 +101,6 @@ jobs:
106101
exit 1
107102
fi
108103
109-
- name: Install yamlfmt
110-
uses: action-stars/install-tool-from-github-release@1fa61c3bea52eca3bcdb1f5c961a3b113fe7fa54 # v0.2.6
111-
if: inputs.yamlfmt
112-
with:
113-
github_token: ${{ github.token }}
114-
owner: google
115-
repository: yamlfmt
116-
arch_amd64: x86_64
117-
os_linux: Linux
118-
check_command: yamlfmt -version
119-
version: latest
120-
121104
- name: Run yamlfmt check
122105
if: inputs.yamlfmt
123106
run: |

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515

1616
## [UNRELEASED]
1717

18+
## [v0.11.0] - 2026-07-01
19+
20+
### Changed
21+
22+
- Use [action-stars/ghactl-action](https://github.com/action-stars/ghactl-action) ([`ghactl`](https://github.com/action-stars/ghactl)) for installing tools from GitHub releases. ([#98](https://github.com/action-stars/generic-workflows/pull/98)) @stevehipwell
23+
- Update _Dependabot_ changelog formatting to no longer italicize the `@dependabot` username. ([#98](https://github.com/action-stars/generic-workflows/pull/98)) @stevehipwell
24+
1825
## [v0.10.0] - 2026-07-01
1926

2027
### Changed
@@ -247,7 +254,8 @@
247254
<!--
248255
RELEASES
249256
-->
250-
[UNRELEASED]: https://github.com/action-stars/generic-workflows/compare/v0.10.0...HEAD
257+
[UNRELEASED]: https://github.com/action-stars/generic-workflows/compare/v0.11.0...HEAD
258+
[v0.11.0]: https://github.com/action-stars/generic-workflows/releases/tag/v0.11.0
251259
[v0.10.0]: https://github.com/action-stars/generic-workflows/releases/tag/v0.10.0
252260
[v0.9.0]: https://github.com/action-stars/generic-workflows/releases/tag/v0.9.0
253261
[v0.8.0]: https://github.com/action-stars/generic-workflows/releases/tag/v0.8.0

0 commit comments

Comments
 (0)