Skip to content

Commit

Permalink
⬆️ Upgrade to Go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Apr 2, 2024
1 parent 79bd4ae commit 7c91993
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1,694 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "1.17.x"

- name: Cache Go Dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version-file: "go.mod"

- name: Vet
run: go vet
Expand All @@ -47,17 +37,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "1.17.x"

- name: Cache Go Dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version-file: "go.mod"

- name: Build
run: go build .
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.17.x'

- name: Cache Go Dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version-file: "go.mod"

- name: Login to Docker Hub
uses: docker/[email protected]
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**Etherpad Toolkit is a collection for most common [Etherpad](https://github.com/ether/etherpad-lite) maintenance tasks.**

```
```text
Usage:
etherpad-toolkit [command]
Expand All @@ -31,7 +31,7 @@ Use "etherpad-toolkit [command] --help" for more information about a command.

You can run the etherpad-toolkit with Docker

```
```text
docker run systemli/etherpad-toolkit:latest --help
```

Expand All @@ -41,7 +41,7 @@ docker run systemli/etherpad-toolkit:latest --help

The command copies a pad with full history and chat. If force is true and the destination pad exists, it will be overwritten.

```
```text
Usage:
etherpad-toolkit copy-pad [sourceID] [destinationID] [flags]
Expand All @@ -55,7 +55,7 @@ Flags:

The command removes a single pad entirely from Etherpad.

```
```text
Usage:
etherpad-toolkit delete-pad [pad] [flags]
Expand All @@ -68,7 +68,7 @@ Flags:

The Command serves the count of pads grouped by suffix in Prometheus format.

```
```text
Usage:
etherpad-toolkit metrics [flags]
Expand All @@ -82,7 +82,7 @@ Flags:

The command moves a single pad. If force is true and the destination pad exists, it will be overwritten.

```
```text
Usage:
etherpad-toolkit move-pad [sourceID] [destinationID] [flags]
Expand All @@ -108,7 +108,7 @@ This configuration will group the pads in three clusters: default (expiration: 3
temp (expiration: 24 hours), keep (expiration: 365 days). If pads in the clusters older than the given expiration the
pads will be deleted.

```
```text
Usage:
etherpad-toolkit purge [flags]
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/systemli/etherpad-toolkit

go 1.17
go 1.21

require (
github.com/prometheus/client_golang v1.18.0
Expand Down
Loading

0 comments on commit 7c91993

Please sign in to comment.