diff --git a/.github/workflows/bump-beats-version.yml b/.github/workflows/bump-beats-version.yml index 5fb4a12177a..0c0607bf660 100644 --- a/.github/workflows/bump-beats-version.yml +++ b/.github/workflows/bump-beats-version.yml @@ -56,6 +56,7 @@ jobs: uses: elastic/oblt-actions/updatecli/run@v1 with: command: apply --config .ci/updatecli/update-beats.yml --values .ci/updatecli/values.d/scm.yml + version-file: .updatecli-version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH_NAME: ${{ matrix.branch }} diff --git a/.github/workflows/bump-golang.yml b/.github/workflows/bump-golang.yml index b57d7865eed..452cb73dd13 100644 --- a/.github/workflows/bump-golang.yml +++ b/.github/workflows/bump-golang.yml @@ -21,32 +21,16 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Updatecli in the runner - uses: updatecli/updatecli-action@1536e372d5f433385f11b5b133b23a9833c510ce # 2.86.0 - - - name: Run Updatecli in Apply mode - run: updatecli apply --config .ci/updatecli/updatecli-bump-golang.yml --values .ci/updatecli/values.d/scm.yml + - uses: elastic/oblt-actions/updatecli/run@v1 + with: + command: apply --config .ci/updatecli/updatecli-bump-golang.yml --values .ci/updatecli/values.d/scm.yml + version-file: .updatecli-version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - if: ${{ failure() }} - uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 + uses: elastic/oblt-actions/slack/send@v1 with: - method: chat.postMessage - token: ${{ secrets.SLACK_BOT_TOKEN }} - payload: | - { - "channel": "#ingest-notifications", - "text": "${{ env.SLACK_MESSAGE }}", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "${{ env.SLACK_MESSAGE }}" - } - } - ] - } - env: - SLACK_MESSAGE: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>" + bot-token: ${{ secrets.SLACK_BOT_TOKEN }} + channel-id: "#ingest-notifications" + message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>" diff --git a/.github/workflows/bump-otel-version.yml b/.github/workflows/bump-otel-version.yml index 6ea2dad7ae1..12aee4a9fda 100644 --- a/.github/workflows/bump-otel-version.yml +++ b/.github/workflows/bump-otel-version.yml @@ -39,6 +39,7 @@ jobs: uses: elastic/oblt-actions/updatecli/run@v1 with: command: apply --config .ci/updatecli/update-otel.yml --values .ci/updatecli/values.d/scm.yml + version-file: .updatecli-version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH_NAME: ${{ matrix.branch }} diff --git a/.github/workflows/bump-vm-images.yml b/.github/workflows/bump-vm-images.yml index b6641b5cc8e..0b12d6b6d2e 100644 --- a/.github/workflows/bump-vm-images.yml +++ b/.github/workflows/bump-vm-images.yml @@ -52,6 +52,7 @@ jobs: - uses: elastic/oblt-actions/updatecli/run@v1 with: command: apply --config .ci/updatecli/updatecli-bump-vm-images.yml --values .ci/updatecli/values.d/scm.yml + version-file: .updatecli-version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH_NAME: ${{ matrix.branch }} diff --git a/.github/workflows/updatecli-compose.yml b/.github/workflows/updatecli-compose.yml index cc85076e01a..624075d7a92 100644 --- a/.github/workflows/updatecli-compose.yml +++ b/.github/workflows/updatecli-compose.yml @@ -28,33 +28,22 @@ jobs: - uses: elastic/oblt-actions/updatecli/run@v1 with: command: --experimental compose diff + version-file: .updatecli-version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: elastic/oblt-actions/updatecli/run@v1 with: command: --experimental compose apply + version-file: .updatecli-version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - if: ${{ failure() }} - uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 - with: - method: chat.postMessage - token: ${{ secrets.SLACK_BOT_TOKEN }} - payload: | - { - "channel": "#ingest-notifications", - "text": "${{ env.SLACK_MESSAGE }}", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "${{ env.SLACK_MESSAGE }}" - } - } - ] - } + uses: elastic/oblt-actions/slack/send@v1 env: - SLACK_MESSAGE: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>" + JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + with: + bot-token: ${{ secrets.SLACK_BOT_TOKEN }} + channel-id: "#ingest-notifications" + message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>" diff --git a/.updatecli-version b/.updatecli-version new file mode 100644 index 00000000000..5c5d5571187 --- /dev/null +++ b/.updatecli-version @@ -0,0 +1 @@ +v0.104.0 \ No newline at end of file