Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 20, 2024
1 parent 1b77901 commit 6740a38
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/github_workflows.ex
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,16 @@ defmodule GithubWorkflows do
]
]
) ++
if(os == "Linux",
do: [],
else: [
[
name: "Disable password prompt for macOS",
if: "steps.result_cache.outputs.cache-hit != 'true'",
run: "echo 'runner ALL=(ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers.d/runner"
]
]
) ++
[
[
name: "Install expect tool",
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
with:
key: ${{ runner.os }}-bash-script-${{ hashFiles('test/scripts/script.exp') }}-${{ hashFiles('priv/static/macOS.sh') }}
path: priv/static/macOS.sh
- name: Disable password prompt for macOS
if: steps.result_cache.outputs.cache-hit != 'true'
run: 'echo ''runner ALL=(ALL) NOPASSWD: ALL'' | sudo tee -a /etc/sudoers.d/runner'
- name: Install expect tool
if: steps.result_cache.outputs.cache-hit != 'true'
run: brew install expect
Expand Down Expand Up @@ -135,6 +138,9 @@ jobs:
- name: Install shell
if: steps.result_cache.outputs.cache-hit != 'true'
run: brew install zsh
- name: Disable password prompt for macOS
if: steps.result_cache.outputs.cache-hit != 'true'
run: 'echo ''runner ALL=(ALL) NOPASSWD: ALL'' | sudo tee -a /etc/sudoers.d/runner'
- name: Install expect tool
if: steps.result_cache.outputs.cache-hit != 'true'
run: brew install expect
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
with:
key: ${{ runner.os }}-bash-script-${{ hashFiles('test/scripts/script.exp') }}-${{ hashFiles('priv/static/macOS.sh') }}
path: priv/static/macOS.sh
- name: Disable password prompt for macOS
if: steps.result_cache.outputs.cache-hit != 'true'
run: 'echo ''runner ALL=(ALL) NOPASSWD: ALL'' | sudo tee -a /etc/sudoers.d/runner'
- name: Install expect tool
if: steps.result_cache.outputs.cache-hit != 'true'
run: brew install expect
Expand Down Expand Up @@ -135,6 +138,9 @@ jobs:
- name: Install shell
if: steps.result_cache.outputs.cache-hit != 'true'
run: brew install zsh
- name: Disable password prompt for macOS
if: steps.result_cache.outputs.cache-hit != 'true'
run: 'echo ''runner ALL=(ALL) NOPASSWD: ALL'' | sudo tee -a /etc/sudoers.d/runner'
- name: Install expect tool
if: steps.result_cache.outputs.cache-hit != 'true'
run: brew install expect
Expand Down

0 comments on commit 6740a38

Please sign in to comment.