fix: update transactions data table to use currentLedger.id from new … #65
Workflow file for this run
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: Commit Labeling | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- hotfix/v* | |
- feature/* | |
- fix/* | |
paths-ignore: | |
- '.gitignore' | |
- '**/*.md' | |
jobs: | |
commit_labeling: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Get Commit Message (Sanitized) | |
id: commit_message | |
run: | | |
RAW_MESSAGE=$(git log -1 --pretty=format:%s) | |
SAFE_MESSAGE=$(echo "$RAW_MESSAGE" | sed 's/[^a-zA-Z0-9 :_-]//g') | |
echo "COMMIT_MESSAGE=$SAFE_MESSAGE" >> $GITHUB_ENV | |
- name: Check Commit Messages for "fix", "feat", "chore", or "release" | |
run: | | |
echo "Checking commit message: $COMMIT_MESSAGE" | |
if [[ "$COMMIT_MESSAGE" =~ ^fix: ]]; then | |
echo "Commit is a FIX. Proceed with color labeling!" | |
echo "" | |
elif [[ "$COMMIT_MESSAGE" =~ ^feat: ]]; then | |
echo "Commit is a FEATURE. Proceed with color labeling!" | |
echo "" | |
elif [[ "$COMMIT_MESSAGE" =~ ^chore: ]]; then | |
echo "Commit is a CHORE. Proceed with color labeling!" | |
echo "" | |
elif [[ "$COMMIT_MESSAGE" =~ ^release: ]]; then | |
echo "Commit is a RELEASE. Proceed with color labeling!" | |
echo "" | |
else | |
echo "Commit does not match 'fix', 'feat', 'chore', or 'release'. No action." | |
fi | |
env: | |
COMMIT_MESSAGE: ${{ env.COMMIT_MESSAGE }} |