update-version #100
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: Update brew with new versions | |
on: | |
repository_dispatch: | |
types: [update-version] | |
jobs: | |
update-brew: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run Bash script with version argument | |
run: | | |
# Ensure a version argument is provided | |
if [ -z "${{ github.event.client_payload.version }}" ]; then | |
echo "Please provide a version number as an argument." | |
exit 1 | |
fi | |
version="${{ github.event.client_payload.version }}" | |
echo "Received version: $version" | |
bash scripts/update_sha.sh $version | |
- name: Commit ${{ github.event.client_payload.version }} | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
file_pattern: 'daytona.rb' | |
branch: main | |
commit_message: Automated file update to - ${{ github.event.client_payload.version }} |