Skip to content

Commit 6902243

Browse files
authored
chore: update CI/CD workflows, Homebrew and new contributors (#552)
1 parent 15cc181 commit 6902243

10 files changed

Lines changed: 68 additions & 120 deletions

File tree

.github/dependabot.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ updates:
55
schedule:
66
interval: "weekly"
77
open-pull-requests-limit: 10
8-
target-branch: dev
9-
# ignore:
10-
# - dependency-name: "example-package"
11-
# versions: ["2.x.x"]
8+
target-branch: main
9+
ignore:
10+
- dependency-name: "modernc.org/sqlite"
11+
versions: [">=1.32.0"] # v1.32+ requires Go 1.21, project is pinned to Go 1.20
12+
- dependency-name: "golang.org/x/text" # will be removed in upcoming refactoring
1213
- package-ecosystem: "github-actions"
1314
directory: "/"
1415
schedule:
1516
interval: "monthly"
16-
open-pull-requests-limit: 5
17-
target-branch: dev
17+
open-pull-requests-limit: 8
18+
target-branch: main

.github/release-drafter.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
matrix:
1919
os: [ubuntu-latest, windows-latest, macos-latest]
2020
steps:
21-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@v6
2222

2323
- uses: actions/setup-go@v6
2424
with:

.github/workflows/contributors.yml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,38 @@
11
name: Contributors
2+
23
on:
3-
schedule:
4-
- cron: '0 1 * * 0' # At 01:00 on Sunday.
54
push:
65
branches:
76
- main
7+
paths-ignore:
8+
- README.md
9+
schedule:
10+
- cron: '0 1 1 * *' # 1st of each month at 01:00 UTC
811
workflow_dispatch:
9-
inputs:
10-
logLevel:
11-
description: 'manual run'
12-
required: false
13-
default: ''
12+
1413
jobs:
1514
contributors:
1615
runs-on: ubuntu-latest
1716
steps:
18-
- uses: bubkoo/contributors-list@v1
17+
- name: Generate app token
18+
uses: actions/create-github-app-token@v3
19+
id: app-token
20+
with:
21+
app-id: ${{ secrets.HACKBROWSERDATA_BOT_APP_ID }}
22+
private-key: ${{ secrets.HACKBROWSERDATA_BOT_PRIVATE_KEY }}
23+
24+
- name: Checkout
25+
uses: actions/checkout@v6
26+
with:
27+
token: ${{ steps.app-token.outputs.token }}
28+
29+
- name: Update contributors list
30+
uses: akhilmhdh/[email protected]
31+
env:
32+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
1933
with:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
round: true
34+
image_size: 100
35+
columns_per_row: 6
36+
readme_path: README.md
37+
auto_detect_branch_protection: false
38+
commit_message: 'chore: update contributors list [skip ci]'

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
os: [ubuntu-latest, windows-latest, macos-latest]
1919
steps:
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@v6
2121

2222
- uses: actions/setup-go@v6
2323
with:

.github/workflows/release.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ on:
55

66
permissions:
77
contents: write
8-
pull-requests: write
98

109
jobs:
1110
goreleaser:
1211
runs-on: ubuntu-latest
1312
steps:
1413
- name: Check out code
15-
uses: actions/checkout@v5
14+
uses: actions/checkout@v6
1615
with:
1716
fetch-depth: 0
1817

@@ -22,17 +21,10 @@ jobs:
2221
go-version-file: go.mod
2322

2423
- name: Run GoReleaser
25-
uses: goreleaser/goreleaser-action@v6
24+
uses: goreleaser/goreleaser-action@v7
2625
with:
2726
version: '~> v2'
2827
args: release --clean --draft
2928
env:
3029
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
32-
update_release_draft:
33-
needs: goreleaser
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: release-drafter/release-drafter@v6
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
2020
runs-on: ${{ matrix.os }}
2121
steps:
22-
- uses: actions/checkout@v5
22+
- uses: actions/checkout@v6
2323

2424
- uses: actions/setup-go@v6
2525
with:

.goreleaser.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ builds:
3030
archives:
3131
- id: "archive"
3232
formats:
33-
- zip
33+
- tar.gz
34+
format_overrides:
35+
- goos: windows
36+
formats:
37+
- zip
3438
files:
3539
- README.md
3640
- LICENSE
@@ -62,5 +66,26 @@ checksum:
6266
name_template: "checksums-v{{ .Version }}.txt"
6367
algorithm: sha256
6468

69+
brews:
70+
- name: hack-browser-data
71+
homepage: "https://github.com/moonD4rk/HackBrowserData"
72+
description: "Extract and decrypt browser data from multiple browsers"
73+
license: "MIT"
74+
directory: Formula
75+
skip_upload: auto
76+
repository:
77+
owner: moonD4rk
78+
name: homebrew-tap
79+
branch: main
80+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
81+
commit_author:
82+
name: "github-actions[bot]"
83+
email: "github-actions[bot]@users.noreply.github.com"
84+
commit_msg_template: "brew formula update for {{ .ProjectName }} version {{ .Tag }}"
85+
install: |
86+
bin.install "hack-browser-data"
87+
test: |
88+
system "#{bin}/hack-browser-data", "version"
89+
6590
release:
6691
prerelease: auto

CONTRIBUTORS.svg

Lines changed: 0 additions & 57 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ Please see the [Contribution Guide](CONTRIBUTING.md) before contributing.
191191

192192
## Contributors
193193

194-
![](/CONTRIBUTORS.svg)
194+
<!-- readme: collaborators,contributors -start -->
195+
<!-- readme: collaborators,contributors -end -->
195196

196197
## Stargazers over time
197198
[![Star History Chart](https://api.star-history.com/svg?repos=moond4rk/hackbrowserdata&type=Date)](https://github.com/moond4rk/HackBrowserData)

0 commit comments

Comments
 (0)