Skip to content

Commit

Permalink
👷 Add manual trigger for application installation
Browse files Browse the repository at this point in the history
This commit introduces a new GitHub action for triggering manual application installations on macOS. The action takes an input parameter for selective application installation using a regex match in the name. This is to provide more flexibility in the automated development setup process. Further, commented out the previous automated install lines in macos.yml as part of transitioning into manual initiation process. This change is part of efforts to enhance control and customization over the automated build setup process.
  • Loading branch information
wingy3181 committed Dec 3, 2023
1 parent d6b19ff commit cdf57fc
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
jobs:
macOS:
runs-on: macos-latest
strategy:
matrix:
include:
- applications-to-install: "^(Chrome).*$"
# strategy:
# matrix:
# include:
# - applications-to-install: "^(Chrome).*$"
# - applications-to-install: "^([a-fA-F0-9]|Bash|Java).*$"
# - applications-to-install: "^([g-pG-P]|Bash|Java).*$"
# - applications-to-install: "^([q-zQ-Z]|Bash|Java).*$"
Expand All @@ -24,11 +24,11 @@ jobs:
- name: Install dependencies
run: brew install shellcheck

- name: Install applications in dotfiles
env:
INSTALL_APPLICATION_IF_READABLE_NAME_MATCH_REGEX: ${{ matrix.applications-to-install }}
TERM: xterm-256color
run: ./src/os/setup.sh -y
# - name: Install applications in dotfiles
# env:
# INSTALL_APPLICATION_IF_READABLE_NAME_MATCH_REGEX: ${{ matrix.applications-to-install }}
# TERM: xterm-256color
# run: ./src/os/setup.sh -y

- name: Lint shell files
run: ./scripts/lint/shell.sh
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/manual_trigger_to_install_apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# For more information about the configurations used
# in this file, please see the GitHub Actions documentation.
#
# https://docs.github.com/en/actions
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

jobs:
macOS:
runs-on: macos-latest

steps:

- name: Checkout repository
uses: actions/checkout@v3

- name: Install applications
env:
INSTALL_APPLICATION_IF_READABLE_NAME_MATCH_REGEX: ${{ inputs.applicationsToInstall }}
TERM: xterm-256color
run: ./src/os/setup.sh -y

name: macOS

on:
workflow_dispatch:
inputs:
applicationsToInstall:
description: 'Applications to install (whitelisted regex)'
required: true
default: '^(Chrome).*$'
type: string

0 comments on commit cdf57fc

Please sign in to comment.