|
@ -7,20 +7,20 @@ on: |
|
|
- main |
|
|
- main |
|
|
paths-ignore: |
|
|
paths-ignore: |
|
|
- '**.md' |
|
|
- '**.md' |
|
|
- '.gitignore' |
|
|
|
|
|
- '.github/workflows/**' |
|
|
|
|
|
- 'LICENSE' |
|
|
- 'LICENSE' |
|
|
|
|
|
- '.gitignore' |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
auto-tag: |
|
|
auto-tag: |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
|
permissions: |
|
|
permissions: |
|
|
contents: write |
|
|
contents: write |
|
|
|
|
|
outputs: |
|
|
|
|
|
new_tag: ${{ steps.get_latest_tag.outputs.version }} |
|
|
steps: |
|
|
steps: |
|
|
- uses: actions/checkout@v4 |
|
|
- uses: actions/checkout@v4 |
|
|
with: |
|
|
with: |
|
|
fetch-depth: 0 |
|
|
fetch-depth: 0 |
|
|
token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
|
|
|
|
|
- name: Get latest tag |
|
|
- name: Get latest tag |
|
|
id: get_latest_tag |
|
|
id: get_latest_tag |
|
@ -38,6 +38,8 @@ jobs: |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
- name: Create new tag |
|
|
- name: Create new tag |
|
|
|
|
|
env: |
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
run: | |
|
|
run: | |
|
|
new_tag=${{ steps.get_latest_tag.outputs.version }} |
|
|
new_tag=${{ steps.get_latest_tag.outputs.version }} |
|
|
git config --global user.name 'github-actions[bot]' |
|
|
git config --global user.name 'github-actions[bot]' |
|
|