Skip to content

Commit

Permalink
Package action for GitHub Marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Slotin committed May 25, 2020
1 parent dcaedec commit a60a7b5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,29 @@ e.g. `contrib/awesomity/v1.2.3`.
Usage
-----

Create a new workflow file with following context:

```yaml
on:
release:
types:
- created
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- '**/v[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
name: Renew documentation
runs-on: ubuntu-latest
steps:
- name: Pull new module version
uses: andrewslotin/go-proxy-pull-action@master
```
This will trigger the action each time whenever a new release is published for a tag that looks either like `vX.Y.Z` or
`submodule/path/vX.Y.Z`.

Why?
----

Expand Down
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Go proxy warming'
description: 'Pull the new release of a module to the Go proxy cache'
author: 'Andrey Slotin'
inputs:
goproxy:
description: 'URL of the proxy to be passed to `go get` as GOPROXY='
required: false
default: 'https://proxy.golang.org'
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'download'
color: 'blue'

0 comments on commit a60a7b5

Please # to comment.