Skip to content

macos-latest - unpublished version ✅ refs/heads/test-v3 ✅ milankomaj ✅ workflow_dispatch #173

macos-latest - unpublished version ✅ refs/heads/test-v3 ✅ milankomaj ✅ workflow_dispatch

macos-latest - unpublished version ✅ refs/heads/test-v3 ✅ milankomaj ✅ workflow_dispatch #173

Workflow file for this run

name: macos-latest - unpublished version
run-name: ${{ github.workflow }} ✅ ${{ github.ref }} ✅ ${{ github.actor }} ✅ ${{ github.event_name}}
on:
workflow_dispatch:
jobs:
Shell:
name: Shell
continue-on-error: false
strategy:
fail-fast: false
max-parallel: 3
matrix:
include:
- shell: bash
- shell: sh
- shell: pwsh
runs-on: macos-latest
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- name: checkout ${{ github.ref }}
id: checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: 💡 example before comands
id: systemsetup
run: |
echo ${{ github.ref }} | cut -d "/" -f3-
date
sudo systemsetup -gettimezone
sudo systemsetup -getusingnetworktime
sudo systemsetup -getnetworktimeserver
- name: 💡 unpublished version shell-x@v0.3
id: shell
continue-on-error: true
uses: milankomaj/shell-x@test-v3
with:
shell: ${{ matrix.shell }}
locale: sk_SK.UTF-8
timezone: Europe/Bratislava
comand: date && echo ${{ runner.os }}
- name: 💡 example after comands
id: example
run: |
echo "::group::example"
date
sudo systemsetup -gettimezone
sudo systemsetup -setusingnetworktime on 2>/dev/null
sudo systemsetup -getusingnetworktime
sudo systemsetup -getnetworktimeserver
# sudo softwareupdate --list
# brew list
uname -a
system_profiler SPSoftwareDataType SPHardwareDataType
echo "::endgroup::"
- name: 💡 ${{ steps.shell.outputs.inputs-outputs }}
id: composite-outputs
run: |
echo ${{ steps.shell.outputs.inputs-outputs }}
echo ${{ steps.shell.outputs.shell-outputs }}
echo ${{ steps.shell.outputs.comand-outputs }}
${{ steps.shell.outputs.comand-outputs }}