https://github.com/jenkins-zh/git-tag-actions
https://github.com/jenkins-zh/git-tag-actions
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jenkins-zh/git-tag-actions
- Owner: jenkins-zh
- License: mit
- Created: 2019-11-23T09:32:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-23T12:08:33.000Z (over 5 years ago)
- Last Synced: 2025-01-16T18:06:53.849Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git tag Action
GitHub Action for tag your git repository.
## Create Deploy Key
1. Generate deploy key `ssh-keygen -t rsa -f git-backup -q -N ""`
2. Then go to "Settings > Deploy Keys" of the target repository
3. Add your public key within "Allow write access" option.
4. Copy your private deploy key to `GIT_DEPLOY_KEY` secret in your source git repository of "Settings > Secrets"## Environment Variables
- `GIT_DEPLOY_KEY` - *Required* your deploy key which has **Write access**
```
name: Backup Git Repositoryon:
push:
branches:
- masterjobs:
git-repo-backup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: git-tag
uses: jenkins-zh/git-tag-actions@master
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
```