Skip to content

Merge branch 'main' of https://github.com/davidfrantz/force-udf #1

Merge branch 'main' of https://github.com/davidfrantz/force-udf

Merge branch 'main' of https://github.com/davidfrantz/force-udf #1

Workflow file for this run

name: Git-Tag
on:
push:
branches: [ main ]
jobs:
tagging:
name: Create and Push Tag
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0 # fetch all history for tags
- name: Set up git user
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Create and Push Tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
DATE_TIME=$(date +'%Y%m%d%H%M%S')
TAG_NAME="1.${DATE_TIME}
git tag "$TAG_NAME"
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} "$TAG_NAME"