diff --git a/.ci/bump-opbeans-node.yml b/.ci/bump-opbeans-node.yml index a2033ed..6e7a547 100644 --- a/.ci/bump-opbeans-node.yml +++ b/.ci/bump-opbeans-node.yml @@ -7,12 +7,11 @@ scms: githubConfig: kind: github spec: - user: '{{ requiredEnv "GIT_USER" }}' - email: '{{ requiredEnv "GIT_EMAIL" }}' + user: '{{ requiredEnv "GITHUB_ACTOR" }}' owner: elastic repository: opbeans-node token: '{{ requiredEnv "GITHUB_TOKEN" }}' - username: '{{ requiredEnv "GIT_USER" }}' + username: '{{ requiredEnv "GITHUB_ACTOR" }}' branch: main actions: diff --git a/.github/workflows/bump-opbeans-node.yml b/.github/workflows/bump-opbeans-node.yml index 3d68133..6f18a7e 100644 --- a/.github/workflows/bump-opbeans-node.yml +++ b/.github/workflows/bump-opbeans-node.yml @@ -20,9 +20,16 @@ jobs: with: node-version: 20 cache: 'npm' - - uses: elastic/apm-pipeline-library/.github/actions/updatecli@current + + - uses: elastic/oblt-actions/updatecli/run@v1 + with: + command: "apply --config .ci/bump-opbeans-node.yml" + env: + GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }} + + - if: failure() + uses: elastic/oblt-actions/slack/send@v1 with: - vaultUrl: ${{ secrets.VAULT_ADDR }} - vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} - vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} - pipeline: ./.ci/bump-opbeans-node.yml + bot-token: ${{ secrets.SLACK_BOT_TOKEN }} + channel-id: "#apm-agent-node" + message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @robots-ci please look what's going on "