Skip to content

Commit

Permalink
feat: only install curl if not already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
remdub committed Jul 29, 2024
1 parent 309b456 commit 279c6f7
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [unreleased] - xxxx-xx-xx
- All actions
- only install curl if not already present on system

## [v3.6.1] - 2024-07-29
### Fixed
- build-push-notify
Expand Down
7 changes: 6 additions & 1 deletion build-push-notify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ runs:
using: 'composite'
steps:
- name: Install curl
run: sudo apt-get update && sudo apt-get install -y curl
run: |
if which curl > /dev/null; then
echo "curl is already installed"
else
sudo apt-get update && sudo apt-get install -y curl
fi
shell: bash
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 8 additions & 0 deletions check-url-availibility/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ inputs:
runs:
using: 'composite'
steps:
- name: Install curl
run: |
if which curl > /dev/null; then
echo "curl is already installed"
else
sudo apt-get update && sudo apt-get install -y curl
fi
shell: bash
- name: Check URL availibility
run: |
end=$((SECONDS+${{ inputs.TIMEOUT }}*60))
Expand Down
7 changes: 6 additions & 1 deletion code-analysis-notify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ runs:
using: 'composite'
steps:
- name: Install curl
run: sudo apt-get update && sudo apt-get install -y curl
run: |
if which curl > /dev/null; then
echo "curl is already installed"
else
sudo apt-get update && sudo apt-get install -y curl
fi
shell: bash
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion mattermost-notify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ runs:
using: 'composite'
steps:
- name: Install curl
run: sudo apt-get update && sudo apt-get install -y curl
run: |
if which curl > /dev/null; then
echo "curl is already installed"
else
sudo apt-get update && sudo apt-get install -y curl
fi
shell: bash
- name : Send notification on Mattermost
run: |
Expand Down
7 changes: 6 additions & 1 deletion rundeck-notify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ runs:
using: 'composite'
steps:
- name: Install curl
run: sudo apt-get update && sudo apt-get install -y curl
run: |
if which curl > /dev/null; then
echo "curl is already installed"
else
sudo apt-get update && sudo apt-get install -y curl
fi
shell: bash
- name: Call Rundeck job
id: call-rundeck-job
Expand Down
7 changes: 6 additions & 1 deletion tag-notify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ runs:
using: 'composite'
steps:
- name: Install curl
run: sudo apt-get update && sudo apt-get install -y curl
run: |
if which curl > /dev/null; then
echo "curl is already installed"
else
sudo apt-get update && sudo apt-get install -y curl
fi
shell: bash
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 279c6f7

Please sign in to comment.