You've already forked docker-compose-docker
fix(ci): set git user name and email
This commit is contained in:
@@ -6,6 +6,10 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- Makefile
|
- Makefile
|
||||||
|
|
||||||
|
env:
|
||||||
|
GIT_EMAIL: noreply@cryptic.systems
|
||||||
|
GIT_USER: CSRBot
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tag_on_change:
|
tag_on_change:
|
||||||
permissions:
|
permissions:
|
||||||
@@ -15,6 +19,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5.0.0
|
- uses: actions/checkout@v5.0.0
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Check if DC_VERSION line changed
|
- name: Check if DC_VERSION line changed
|
||||||
id: check_change
|
id: check_change
|
||||||
run: |
|
run: |
|
||||||
@@ -36,7 +41,7 @@ jobs:
|
|||||||
if: steps.check_change.outputs.changed == 'true'
|
if: steps.check_change.outputs.changed == 'true'
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: |
|
run: |
|
||||||
latest_tag=$(git tag --sort=-v:refname | grep --extended-regexp '^[0-9]+\.[0-9]+\.[0-9]+$' | head --lines 1 || echo "0.0.0")
|
latest_tag=$(git tag --sort=-v:refname | grep --extended-regexp '^v[0-9]+\.[0-9]+\.[0-9]+$' | head --lines 1 || echo "0.0.0")
|
||||||
echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT
|
echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT
|
||||||
echo "Latest tag: $latest_tag"
|
echo "Latest tag: $latest_tag"
|
||||||
|
|
||||||
@@ -58,6 +63,8 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
new_tag=${{ steps.bump.outputs.new_tag }}
|
new_tag=${{ steps.bump.outputs.new_tag }}
|
||||||
|
git config --local user.name "${GIT_USERNAME}"
|
||||||
|
git config --local user.email "${GIT_EMAIL}"
|
||||||
git tag -a "${new_tag}" -m "${new_tag}"
|
git tag -a "${new_tag}" -m "${new_tag}"
|
||||||
git push origin "${new_tag}"
|
git push origin "${new_tag}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user