-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from actions/readme
Update README and examples
- Loading branch information
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
12 changes: 9 additions & 3 deletions
12
.github/workflows/go-action.yml → ...ub/workflows/go-dependency-submission.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
name: Go Action detection of dependencies | ||
on: | ||
name: Go Dependency Submission | ||
on | ||
push: | ||
branches: | ||
- main | ||
|
||
# The API requires write permission on the repository to submit dependencies | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
go-action-detection: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ">=1.18.0" | ||
|
||
- name: Run snapshot action | ||
uses: dsp-testing/go-snapshot-action@main | ||
uses: actions/go-dependency-submission@main | ||
with: | ||
go-mod-path: go-example/go.mod | ||
go-build-target: go-example/cmd/octocat.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters