Skip to content

Improve Workflow

Improve Workflow #7

Workflow file for this run

name: 'Update Tag and Commit'
on:
push:
branches:
- main
jobs:
update-text:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Update Tag in Text File
uses: ./.github/actions/update-text
with:
filepath: 'Tag.txt'
- name: Commit and Push
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add 'Tag.txt'
git commit -m "Update Tag from 'Tag 1' to 'Tag 2'"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}