Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #22 from swinton/rename
Browse files Browse the repository at this point in the history
Rename
  • Loading branch information
swinton authored Jan 25, 2019
2 parents 8c3561f + 6da05d3 commit f9f593f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM python:3-slim-stretch

LABEL name="HTTP client for GitHub Actions"
LABEL version="1.0.3"
LABEL repository="http://github.com/swinton/httpie-action"
LABEL homepage="http://github.com/swinton/httpie-action"
LABEL repository="http://github.com/swinton/httpie.action"
LABEL homepage="http://github.com/swinton/httpie.action"

LABEL maintainer="Steve Winton <[email protected]>"
LABEL com.github.actions.name="HTTP client"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# httpie-action
# httpie.action

> Human-friendly interactions with third-party web services through **GitHub Actions** :zap:
Expand Down Expand Up @@ -29,7 +29,7 @@ workflow "Call external API" {
}
action "Call httpbin" {
uses = "swinton/httpie-action@master"
uses = "swinton/httpie.action@master"
args = ["POST", "httpbin.org/anything", "hello=world"]
}
```
Expand All @@ -44,21 +44,21 @@ In this more advanced, but somewhat contrived, example we'll open an issue in th

```hcl
action "Issue" {
uses = "swinton/httpie-action@master"
uses = "swinton/httpie.action@master"
args = ["--auth-type=jwt", "--auth=$GITHUB_TOKEN", "POST", "api.github.com/repos/$GITHUB_REPOSITORY/issues", "title=Hello\\ world"]
secrets = ["GITHUB_TOKEN"]
}
action "Comment on issue" {
needs = ["Issue"]
uses = "swinton/httpie-action@master"
uses = "swinton/httpie.action@master"
args = ["--auth-type=jwt", "--auth=$GITHUB_TOKEN", "POST", "`jq .comments_url /github/home/Issue.response.body --raw-output`", "body=Thanks\\ for\\ playing\\ :v:"]
secrets = ["GITHUB_TOKEN"]
}
action "Close issue" {
needs = ["Issue"]
uses = "swinton/httpie-action@master"
uses = "swinton/httpie.action@master"
args = ["--auth-type=jwt", "--auth=$GITHUB_TOKEN", "PATCH", "`jq .url /github/home/Issue.response.body --raw-output`", "state=closed"]
secrets = ["GITHUB_TOKEN"]
}
Expand All @@ -72,7 +72,7 @@ In this example, we'll trigger a separate workflow, via [the repository's dispat

```hcl
action "Trigger workflow" {
uses = "swinton/httpie-action@master"
uses = "swinton/httpie.action@master"
args = ["--auth-type=jwt", "--auth=$PAT", "POST", "api.github.com/repos/$GITHUB_REPOSITORY/dispatches", "Accept:application/vnd.github.everest-preview+json", "event_type=demo"]
secrets = ["PAT"]
}
Expand Down

0 comments on commit f9f593f

Please sign in to comment.