Closed
Description
Description
I have created following workflow to deploy new tags. Everything working fine, but, user that create new tag is alway displayed as Ghost.
Here is my workflow:
name: 🚀 Tag and Deploy Application
on:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: false
jobs:
tag-and-deploy:
runs-on: debian-node
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
- name: 🛠️ Install dependencies
run: |
apt-get update && apt-get install -y jq
- name: 🔍 Get version and name from package.json
id: get_version_name
run: |
VERSION=$(jq -r .version package.json)
NAME=$(jq -r .name package.json)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "name=$NAME" >> $GITHUB_OUTPUT
- name: 🏷️ Fetch all tags
run: git fetch --tags
- name: 🔎 Check if tag exists
id: check_tag
run: |
if git rev-parse "${{ steps.get_version_name.outputs.version }}" >/dev/null 2>&1; then
echo "deploy_needed=false" >> $GITHUB_OUTPUT
else
echo "deploy_needed=true" >> $GITHUB_OUTPUT
fi
- name: 🆕 Create and push tag
if: steps.check_tag.outputs.deploy_needed == 'true'
run: |
git config user.name "Gitea Runner"
git config user.email "gitea.runner@domain.com"
git tag "${{ steps.get_version_name.outputs.version }}"
git push origin "${{ steps.get_version_name.outputs.version }}"
I've created new user with username gitea.runner and email gitea.runner@domain.com. Why is it still marked as Ghost user when new tag is being created? Thanks!
Gitea Version
1.24.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Debian 12
How are you running Gitea?
Self hosted in LXC container.
Database
None