Created
April 6, 2026 01:53
-
-
Save mchavezi/285f5cd8676f35b7c98dd98c3bbc34ac to your computer and use it in GitHub Desktop.
Bump
This file contains hidden or 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
| #!/bin/bash | |
| # Check if bump.txt exists, if not, create it | |
| if [ ! -f bump.txt ]; then | |
| touch bump.txt | |
| fi | |
| # Append the timestamp to bump.txt | |
| echo "Bumping at $(date)" >> bump.txt | |
| # Get the current git branch | |
| current_branch=$(git rev-parse --abbrev-ref HEAD) | |
| # Perform git operations | |
| git add bump.txt | |
| git commit -m "bump" | |
| git push origin "$current_branch" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment