@@ -22,21 +22,13 @@ jobs:
22
22
- uses : ruby/setup-ruby@v1
23
23
with :
24
24
ruby-version : 2.6
25
- -
uses :
hashicorp/[email protected]
26
- with :
27
- url : ${{ secrets.VAULT_ADDR }}
28
- method : approle
29
- roleId : ${{ secrets.VAULT_ROLE_ID }}
30
- secretId : ${{ secrets.VAULT_SECRET_ID }}
31
- secrets : |
32
- secret/apm-team/ci/apm-agent-ruby-rubygems-release apiKey | API_KEY ;
33
25
- name : RubyGems login
34
26
run : |
35
27
RUBY_HOME="${HOME}/.gem"
36
28
RUBY_CREDENTIALS_FILE="${RUBY_HOME}/credentials"
37
29
mkdir -p "${RUBY_HOME}"
38
30
echo '---' > "${RUBY_CREDENTIALS_FILE}"
39
- echo ":rubygems_api_key: ${API_KEY }" >> "${RUBY_CREDENTIALS_FILE}"
31
+ echo ":rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY } }" >> "${RUBY_CREDENTIALS_FILE}"
40
32
chmod 0600 "${RUBY_CREDENTIALS_FILE}"
41
33
42
34
- name : Install build system
87
79
needs : ${{ toJSON(needs) }}
88
80
- run : ${{ steps.check.outputs.isSuccess }}
89
81
- if : ${{ always() && startsWith(github.ref, 'refs/tags') }}
90
- uses : elastic/apm-pipeline-library/.github/ actions/notify-build-status@current
82
+ uses : elastic/oblt- actions/slack/ notify-result@v1
91
83
with :
92
- vaultUrl : ${{ secrets.VAULT_ADDR }}
93
- vaultRoleId : ${{ secrets.VAULT_ROLE_ID }}
94
- vaultSecretId : ${{ secrets.VAULT_SECRET_ID }}
95
- slackChannel : " #apm-agent-ruby"
84
+ bot-token : ${{ secrets.SLACK_BOT_TOKEN }}
85
+ channel-id : " #apm-agent-ruby"
86
+ message : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @robots-ci please look what's going on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
0 commit comments