Skip to content

Commit

Permalink
chore: Update git user email and name for bot@corca.ai
Browse files Browse the repository at this point in the history
  • Loading branch information
lebmouse committed Jul 15, 2024
1 parent 3688aac commit e899963
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/package-tag-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,20 @@ jobs:
echo "BRANCH_SLUG=${BRANCH_SLUG}" >> $GITHUB_OUTPUT
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_OUTPUT
- name: Get user info
id: userinfo
uses: octokit/request-action@v2.x
with:
route: GET /users/${{ github.actor }}
mediaType: '{"previews": ["mercy"]}'
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }}

- name: Publish Dev Tag
run: |
rm -rf src .husky .github .storybook .prettierrc .eslint.config.js pnpm-lock.yaml vercel.json vite.config.js
git config --global user.email "bot@corca.ai"
git config --global user.name "corca-ai"
git config user.name "${{ fromJson(steps.userinfo.outputs.data).name }}"
git config user.email "${{ fromJson(steps.userinfo.outputs.data).email }}"
git add .
git commit -m "chore: release ${BRANCH_SLUG}-${SHORT_SHA}"
git tag -a '${BRANCH_SLUG}${SHORT_SHA}' -m 'Release ${BRANCH_SLUG}-${SHORT_SHA}'
Expand Down

0 comments on commit e899963

Please sign in to comment.