Skip to content

Commit ffa4113

Browse files
authored
Update runs-on to ubuntu-latest-16-cores and Go version to 1.19 in all workflows and update version in banner and goreleaser configs. (#156)
1 parent d21ca74 commit ffa4113

7 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88
jobs:
99
build:
1010
name: Test Builds
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-latest-16-cores
1212
steps:
1313
- uses: actions/checkout@v3
1414

1515
- uses: actions/setup-go@v3
1616
with:
17-
go-version: 1.18
17+
go-version: 1.19
1818

1919
- name: Test
2020
run: go test ./...

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
analyze:
99
name: Analyze
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-latest-16-cores
1111
permissions:
1212
actions: read
1313
contents: read

.github/workflows/dockerhub-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
docker:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-latest-16-cores
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v3

.github/workflows/lint-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ on:
77
jobs:
88
lint:
99
name: Lint Test
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-latest-16-cores
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v3
1414
- name: Set up Go
1515
uses: actions/setup-go@v3
1616
with:
17-
go-version: 1.18
17+
go-version: 1.19
1818
- name: Run golangci-lint
1919
uses: golangci/[email protected]
2020
with:
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
name: 🎉 Release Binary
22

33
on:
4-
create:
4+
push:
55
tags:
66
- v*
77
workflow_dispatch:
88

99
jobs:
1010
release:
11-
runs-on: ubuntu-latest
12-
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
13-
11+
runs-on: ubuntu-latest-16-cores
1412
steps:
1513
- uses: actions/checkout@v3
16-
1714
- uses: actions/setup-go@v3
1815
with:
19-
go-version: 1.18
16+
go-version: 1.19
2017

2118
- uses: goreleaser/goreleaser-action@v4
2219
with:
@@ -25,4 +22,6 @@ jobs:
2522
workdir: .
2623
env:
2724
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
28-
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"
25+
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"
26+
DISCORD_WEBHOOK_ID: "${{ secrets.DISCORD_WEBHOOK_ID }}"
27+
DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}"

.goreleaser.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ announce:
3939
enabled: true
4040
channel: '#release'
4141
username: GoReleaser
42-
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
42+
message_template: 'New Release: {{ .ProjectName }} {{.Tag}} is published! Check it out at {{ .ReleaseURL }}'
43+
44+
discord:
45+
enabled: true
46+
message_template: '**New Release: {{ .ProjectName }} {{.Tag}}** is published! Check it out at {{ .ReleaseURL }}'

internal/runner/banner.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ const banner = `
77
_____/ /_ ____ _____ _____
88
/ ___/ __ \/ __ / __ \/ ___/
99
/ /__/ / / / /_/ / /_/ (__ )
10-
\___/_/ /_/\__,_/\____/____/ v0.4.0
10+
\___/_/ /_/\__,_/\____/____/ v0.5.0
1111
`
1212

1313
// Version is the current version of chaos
14-
const Version = `0.4.0`
14+
const Version = `0.5.0`
1515

1616
// showBanner is used to show the banner to the user
1717
func showBanner() {
1818
gologger.Print().Msgf("%s\n", banner)
19-
gologger.Print().Msgf("\t\tprojectdiscovery.io\n\n")
20-
21-
gologger.Print().Msgf("Use with caution. You are responsible for your actions\n")
22-
gologger.Print().Msgf("Developers assume no liability and are not responsible for any misuse or damage.\n")
19+
gologger.Print().Msgf("\t\tchaos.projectdiscovery.io\n\n")
2320
}

0 commit comments

Comments
 (0)