Add latest-tag to workflows
This commit is contained in:
18
.github/workflows/latest.yml
vendored
Normal file
18
.github/workflows/latest.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: Add latest tag to new release
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run:
|
||||||
|
name: Add/update tag to new release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Run latest-tag
|
||||||
|
uses: EndBug/latest-tag@latest
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -11,7 +11,7 @@ Add a step like this to your workflow:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Commit changes # This is the step name that will be displayed in your runs
|
- name: Commit changes # This is the step name that will be displayed in your runs
|
||||||
uses: EndBug/add-and-commit@v1.0.0 # You can change this to use a specific version
|
uses: EndBug/add-and-commit@latest # You can change this to use a specific version
|
||||||
with: # See more info about inputs below
|
with: # See more info about inputs below
|
||||||
author_name: Your Name
|
author_name: Your Name
|
||||||
author_email: mail@example.com
|
author_email: mail@example.com
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
run: eslint "src/**" --fix
|
run: eslint "src/**" --fix
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: EndBug/add-and-commit@v1.0.0
|
uses: EndBug/add-and-commit@latest
|
||||||
with:
|
with:
|
||||||
author_name: Your Name
|
author_name: Your Name
|
||||||
author_email: mail@example.com
|
author_email: mail@example.com
|
||||||
|
|||||||
Reference in New Issue
Block a user