Skip to content

Commit

Permalink
Merge branch 'main' into test-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
milankomaj authored Jul 29, 2024
2 parents 30a483e + 0f28bb5 commit bf968b5
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
53 changes: 53 additions & 0 deletions .github/workflows/dropdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Dropdown

on:
workflow_dispatch:
inputs:
name:
type: choice
description: Who to greet
options:
- monalisa
- cschleiden
message:
required: true
default: "default"
use-emoji:
type: boolean
description: Include 🎉🤣 emojis
boolean:
type: boolean
description: True or False

jobs:
greet:
runs-on: ubuntu-latest
outputs:
toJSON: ${{ steps.toJSON.outputs.JSON }}

# environment:
# name: "steps"
# url: "https://${{ steps.send.outcome }}.com"

steps:
- name: Send greeting
id: send
run: |
echo "${{ github.event.inputs.message }} ${{ fromJSON('["","💡"]')[github.event.inputs.use-emoji == 'true'] }} ${{ github.event.inputs.name }}"
echo "${{ github.event.inputs.message }}"
echo "${{ github.event.inputs.name }}"
echo "boolean is ${{ github.event.inputs.boolean }}"
echo "${{ inputs.boolean }}"
echo "${{ fromJSON('["","💡","💡"]')[github.event.inputs.use-emoji == 'true'] }}"
- name: toJSON
id: toJSON
run: |
- name: fromJSON
id: fromJSON
run: |
echo
5 changes: 2 additions & 3 deletions .github/workflows/macos-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
workflow_dispatch:

jobs:

Shell:
name: Shell
continue-on-error: false
Expand All @@ -22,7 +21,6 @@ jobs:
shell: ${{ matrix.shell }}

steps:

- name: checkout ${{ github.ref }}
id: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -69,4 +67,5 @@ jobs:
echo ${{ steps.shell.outputs.inputs-outputs }}
echo ${{ steps.shell.outputs.shell-outputs }}
echo ${{ steps.shell.outputs.comand-outputs }}
${{ steps.shell.outputs.comand-outputs }}
${{ steps.shell.outputs.comand-outputs }}
11 changes: 10 additions & 1 deletion .github/workflows/testv3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,13 @@ jobs:
# brew list
echo -e "\033[31;1m System: \033[0m"
uname -a
system_profiler SPSoftwareDataType SPHardwareDataType
system_profiler SPSoftwareDataType SPHardwareDataType
- uses: actions/checkout@v4
- run: |
gh api repos/milankomaj/shell-x/branches --jq '.[].name'
gh workflow run "testv3.yml" --ref test-v3
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 2 additions & 5 deletions .github/workflows/windows-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
shell: ${{ matrix.shell }}

steps:

- name: checkout ${{ github.ref }}
id: checkout
uses: actions/checkout@v4
Expand All @@ -36,8 +35,6 @@ jobs:
run: |
echo ${{ matrix.shell }}
- name: 💡💡 unpublished version shell-x@v0.3
if: ${{ matrix.shell == 'bash' || matrix.shell == 'sh' }}
id: UNIX
Expand All @@ -56,7 +53,7 @@ jobs:
shell: ${{ matrix.shell }}
locale: sk-SK
timezone: Central Europe Standard Time

- name: 💡 example after cmd comands
if: ${{ matrix.shell == 'cmd' }}
id: cmd
Expand Down Expand Up @@ -108,7 +105,6 @@ jobs:
echo ----------
tzset
- name: 💡 outcome steps
if: ${{ always() }}
shell: bash
Expand All @@ -119,3 +115,4 @@ jobs:
echo "cmd-outcome = ${{ steps.cmd.outcome }}"
echo "powershell-outcome = ${{ steps.powershell.outcome }}"
echo "pwsh-outcome = ${{ steps.pwsh.outcome }}"
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ jobs:
[^1]: if aren't set
[^2]: default Github runners and workflow syntax
[^3]: run any supported command inside shell-x
[^3]: run command inside shell-x

0 comments on commit bf968b5

Please sign in to comment.