Skip to content

Commit 0f9f6c2

Browse files
committed
Add latest-tag to workflows
1 parent bfea235 commit 0f9f6c2

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/latest.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Add latest tag to new release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
run:
8+
name: Add/update tag to new release
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@master
14+
15+
- name: Run latest-tag
16+
uses: EndBug/latest-tag@latest
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Add a step like this to your workflow:
1111

1212
```yaml
1313
- name: Commit changes # This is the step name that will be displayed in your runs
14-
uses: EndBug/add-and-commit@v1.0.0 # You can change this to use a specific version
14+
uses: EndBug/add-and-commit@latest # You can change this to use a specific version
1515
with: # See more info about inputs below
1616
author_name: Your Name
1717
author_email: [email protected]
@@ -61,7 +61,7 @@ jobs:
6161
run: eslint "src/**" --fix
6262
6363
- name: Commit changes
64-
uses: EndBug/add-and-commit@v1.0.0
64+
uses: EndBug/add-and-commit@latest
6565
with:
6666
author_name: Your Name
6767
author_email: [email protected]

0 commit comments

Comments
 (0)