Add latest-tag to workflows

This commit is contained in:
Federico Grandi
2019-09-18 19:44:33 +02:00
parent bfea2358fe
commit 0f9f6c2d95
2 changed files with 20 additions and 2 deletions

18
.github/workflows/latest.yml vendored Normal file
View 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 }}

View File

@@ -11,7 +11,7 @@ Add a step like this to your workflow:
```yaml
- 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
author_name: Your Name
author_email: mail@example.com
@@ -61,7 +61,7 @@ jobs:
run: eslint "src/**" --fix
- name: Commit changes
uses: EndBug/add-and-commit@v1.0.0
uses: EndBug/add-and-commit@latest
with:
author_name: Your Name
author_email: mail@example.com