Skip to content

Commit

Permalink
rename to AMToolCM
Browse files Browse the repository at this point in the history
  • Loading branch information
Peiman Jafari committed Oct 28, 2020
1 parent 043ade4 commit 9a280c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# amomtool GitHub Actions
# AMToolCM GitHub Actions

amomtool GitHub Actions allow you to check Prometheus Alertmanager config within GitHub Actions.
AMTool GitHub Actions allow you to check Prometheus Alertmanager config within GitHub Actions.

The output of the actions can be viewed from the Actions tab in the main repository view. If the actions are executed on a pull request event, a comment may be posted on the pull request.

Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/checkout@master

- name: Check Prometheus Alertmanager Config
uses: peimanja/amtool-github-actions@master
uses: peimanja/amtoolcm-github-actions@main
with:
amtool_actions_config: 'alertmanager/config.yml'
amtool_actions_version: '0.21.0'
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'amtool GitHub Actions'
description: 'Runs Prometheus Alertmanager amtool commands via GitHub Actions.'
name: 'AMToolCM GitHub Actions'
description: 'Runs Prometheus Alertmanager amtool check-config subcommmand via GitHub Actions.'
author: 'Peiman Jafari'
branding:
icon: 'terminal'
Expand Down
4 changes: 2 additions & 2 deletions src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function parseInputs {
if [ "${INPUT_AMTOOL_ACTIONS_CONFIG}" != "" ]; then
amConfig=${INPUT_AMTOOL_ACTIONS_CONFIG}
else
echo "Input amtool_files cannot be empty"
echo "Input amtool_actions_config cannot be empty"
exit 1
fi

Expand Down Expand Up @@ -61,7 +61,7 @@ function main {
cd ${GITHUB_WORKSPACE}
installAmtool
amtoolCheckConfig ${*}
esac

}

main "${*}"

0 comments on commit 9a280c1

Please sign in to comment.