Update input-otp.tsx #849 (#852) #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🔖 Version | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
version: | |
name: 🚀 Update Version | |
runs-on: ubuntu-22.04 | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: 🔢 Get HEAD commit hash | |
id: get_head_hash | |
run: echo "HEAD_HASH=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | |
- name: 📅 Get current date | |
id: get_date | |
run: | |
echo "CURRENT_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT | |
- name: 📝 Update package.json | |
run: | | |
jq ' | |
if .["epic-stack"] then | |
.["epic-stack"].head = "${{ steps.get_head_hash.outputs.HEAD_HASH }}" | | |
.["epic-stack"].date = "${{ steps.get_date.outputs.CURRENT_DATE }}" | |
else | |
.["epic-stack"] = { | |
"head": "${{ steps.get_head_hash.outputs.HEAD_HASH }}", | |
"date": "${{ steps.get_date.outputs.CURRENT_DATE }}" | |
} | |
end | |
' package.json > temp.json && mv temp.json package.json | |
- name: 💾 Commit changes | |
run: | | |
git config --local user.email "kody@epicweb.dev" | |
git config --local user.name "kody" | |
git add package.json | |
git commit -m "Update epic-stack version [skip ci]" | |
git push |