Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create major version and latest tag workflow #10

Merged
merged 2 commits into from Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/update_major_tag.yml
@@ -0,0 +1,22 @@
name: Update major version and latest tag

on:
push:
tags:
- 'v*'

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nowsprinting/check-version-format-action@v1
id: version
with:
prefix: v
- name: Update major version and latest tag
run: |
git tag "${{ steps.version.outputs.major }}"
git tag latest
git push --tags --force
if: steps.version.outputs.is_valid == 'true'
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -97,7 +97,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DeNA/unity-meta-check@3.0.0-alpha1
- uses: DeNA/unity-meta-check@v3
```

See [`./action.yml`](./action.yml) for more detials.
Expand All @@ -116,7 +116,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DeNA/unity-meta-check@3.0.0-alpha1
- uses: DeNA/unity-meta-check@v3
with:
enable_autofix: true
autofix_globs: .
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- uses: jwalton/gh-find-current-pr@v1
id: findPr

- uses: DeNA/unity-meta-check@3.0.0-alpha1
- uses: DeNA/unity-meta-check@v3
enable_pr_comment: true
pr_comment_pull_number: ${{ steps.findPr.outputs.number }}
env:
Expand Down