Skip to content

Commit

Permalink
PMM-12899 update the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Mar 17, 2024
1 parent 7fcadcc commit 653b5a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ jobs:
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_TOKEN_PMM_CI }}
SLACK_CHANNEL: "pmm-ci"
SLACK_USERNAME: "PR pipelines bot"
SLACK_ICON_EMOJI: ":chestnut:"
SLACK_USERNAME: "Build bot"
SLACK_ICON_EMOJI: ":octocat:"
SLACK_COLOR: "#00FF00"
SLACK_TITLE: "Finished ${{ github.event.repository.name }} workflow"
SLACK_MESSAGE: "${{ github.event.inputs.repo || github.repository }}:${{ github.event.inputs.branch || github.head_ref }}"
Expand All @@ -161,8 +161,8 @@ jobs:
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_TOKEN_PMM_CI }}
SLACK_CHANNEL: "pmm-ci"
SLACK_USERNAME: "PR pipelines bot"
SLACK_ICON_EMOJI: ":chestnut:"
SLACK_USERNAME: "Build bot"
SLACK_ICON_EMOJI: ":octocat:"
SLACK_COLOR: "#FF0000"
SLACK_TITLE: "Finished ${{ github.event.repository.name }} workflow"
SLACK_MESSAGE: "Workflow failed: ${{ github.event.inputs.repo || github.repository }}:${{ github.event.inputs.branch || github.head_ref }}"
Expand Down
4 changes: 2 additions & 2 deletions build/scripts/build-server-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ prepare_specs() {
local short_commit=${full_commit:0:7}

sed -i -e "s/global commit.*/global commit ${full_commit}/" ${rpmbuild_dir}/SOURCES/${spec_name}.spec
if [[ ${spec_name} != "grafana" ]]; then
if [ "${spec_name}" != "grafana" ]; then
sed -i -e "s/Version:.*/Version: ${pmm_version}/" ${rpmbuild_dir}/SOURCES/${spec_name}.spec
fi

if [ -z "${full_pmm_version}" ]; then
echo 'A full_pmm_version is not specified.'
echo 'The full_pmm_version is not specified.'
exit 1
fi
sed -i -e "s/%define full_pmm_version.*/%define full_pmm_version ${full_pmm_version}/" ${rpmbuild_dir}/SOURCES/${spec_name}.spec
Expand Down

0 comments on commit 653b5a8

Please sign in to comment.