Skip to content

Commit

Permalink
Update README examples
Browse files Browse the repository at this point in the history
Update the examples in the README to use Node v20, as well as to use more recent versions (via tag) of the action itself.
  • Loading branch information
AndrewADev committed Feb 9, 2024
1 parent f434d66 commit b8f5ccb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ with less time for pushes during action development and pulls during CI executio
### Docker container action

This action builds an image from your Dockerfile, and pushes it to the Docker registry,
and rewrites `action.yml#rans.image` by pushed tag.
and rewrites `action.yml#runs.image` with the pushed tag.

The job just pulls Docker image when using the action, and there's no time to build the Dockerfile.

Expand All @@ -36,7 +36,7 @@ The description `action.yml` can be read as `action.yaml`.
#### Example (Step only)

```yaml
- uses: satackey/push-prebuilt-action@v0.1
- uses: satackey/push-prebuilt-action@v0.2
with:
push-branch: release-master
```
Expand Down Expand Up @@ -111,7 +111,7 @@ The artifacts must be in the dist/ directory and entrypoint must be dist/index.j
#### Example (step only)

```yaml
- uses: satackey/push-prebuilt-action@v0.1
- uses: satackey/push-prebuilt-action@v0.2
with:
push-branch: release-<your_branch_name>
docker-registry: docker.io
Expand Down Expand Up @@ -221,19 +221,19 @@ jobs:
steps:
- name: Setup node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Output branch name
id: name
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
- name: Push
uses: satackey/push-prebuilt-action@v0.1
uses: satackey/push-prebuilt-action@v0.2
with:
push-branch: release-${{ steps.name.outputs.branch }}
# [optional] The commit can be tagged.
Expand All @@ -260,14 +260,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Output branch name
id: name
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
- name: Push
uses: satackey/push-prebuilt-action@v0.1
uses: satackey/push-prebuilt-action@v0.2
with:
push-branch: release-${{ steps.name.outputs.branch }}
# [optional] The commit can be tagged.
Expand Down

0 comments on commit b8f5ccb

Please sign in to comment.