Skip to content

Commit

Permalink
setup user name and email
Browse files Browse the repository at this point in the history
  • Loading branch information
apham0001 committed Nov 4, 2024
1 parent b58bfc8 commit 4647152
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/dispatch-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Update Docs Version
on:
repository_dispatch:
types: [update-version]
push:
branches:
- fix_dispatch_trigger

jobs:
update-docs-version:
Expand All @@ -14,6 +17,14 @@ jobs:
- name: Extract tag name
run: echo "TAG_NAME=${{ github.event.client_payload.tag }}" >> $GITHUB_ENV

- name: Set up Git user identity
run: |
git config --global user.name "obol-platform"
git config --global user.email "[email protected]"
- name: Set TAG_NAME environment variable
run: echo "TAG_NAME=v1.1.3" >> $GITHUB_ENV

- name: Update docs to new version
run: |
TAG_NAME="$(echo "${TAG_NAME}" | sed 's/^v//')"
Expand Down Expand Up @@ -45,6 +56,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: main
head: update-version-${{ env.TAG_NAME }}
branch: update-version-${{ env.TAG_NAME }}
title: "Update docs to use version v${TAG_NAME}"
body: "Automatically generated PR to update documentation for version v${TAG_NAME}"

0 comments on commit 4647152

Please sign in to comment.