Skip to content

Action Server manual Brew publish #6

Action Server manual Brew publish

Action Server manual Brew publish #6

Workflow file for this run

name: Action Server manual Brew publish
on:
workflow_dispatch:
inputs:
version:
description: 'Version to upload'
required: true
default: 'x.x.x'
jobs:
action-server:
name: action-server
runs-on: macos-13
steps:
- name: main checkout
uses: actions/checkout@v4
- name: Set up Git
run: |
git config --global user.email "kari@robocorp.com"
git config --global user.name "kariharju"
- name: Update cask recipe
run: |
cd scripts
chmod +x ./homebrew-update.sh
./homebrew-update.sh ${{ github.event.inputs.version }}
- name: Install and Test Cask
run: |
brew install --cask Casks/action-server.rb
installed_version=$(action-server version)
echo "Installed Version: $installed_version"
if [ "$installed_version" != "${{ github.event.inputs.version }}" ]; then
echo "Version mismatch: expected ${{ github.event.inputs.version }}, got $installed_version"
exit 1
fi
- name: Commit and Push
run: |
git add Casks/action-server.rb
git commit -m "Update Action Server to version ${{ github.event.inputs.version }}"
git push