Skip to content

Commit

Permalink
Add dependabot and update actions. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch authored Feb 7, 2024
1 parent 948eed5 commit b672ada
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "github-actions" # Necessary to update action hashs
directory: "/"
schedule:
interval: "weekly"
# Allow up to 3 opened pull requests for github-actions versions
open-pull-requests-limit: 3
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Show inputs
run: echo "${{ toJSON(github.event.inputs) }}"

- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Use Go 1.20
- name: Switch to Go 1.20
Expand All @@ -58,22 +58,22 @@ jobs:
# Cache go build cache, used to speedup go test
- name: Go Build Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-build-

# Cache go mod cache, used to speedup builds
- name: Go Mod Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-mod-

- name: Ccache cache
uses: actions/cache@v3
uses: actions/cache@v4
# Store and retrieve the cache with the given sha.
# The 'restore-keys' prefix finds the most recent cache in case there
# is no match (which should almost always be the case).
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
done
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
Expand Down

0 comments on commit b672ada

Please sign in to comment.