updatecli: use updatecli policies (#13934) #95
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: bump-golang | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 20 * * 6' | ||
permissions: | ||
contents: read | ||
jobs: | ||
bump: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: elastic/oblt-actions/updatecli/run@v1 | ||
with: | ||
command: --experimental apply --config .ci/updatecli/bump-golang.yml --values .ci/updatecli/values.d/scm.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }} | ||
<<<<<<< HEAD | ||
- if: ${{ failure() }} | ||
uses: elastic/oblt-actions/slack/[email protected] | ||
======= | ||
bump-7: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: '7.17' | ||
- uses: elastic/oblt-actions/updatecli/run@v1 | ||
with: | ||
command: --experimental apply --config .ci/updatecli/bump-golang.yml --values .ci/updatecli/values.d/scm.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }} | ||
GITHUB_BRANCH: '7.17' | ||
GITHUB_LABELS: 'backport-skip' | ||
notify: | ||
runs-on: ubuntu-latest | ||
needs: [bump, bump-7] | ||
if: always() | ||
steps: | ||
- id: check | ||
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current | ||
with: | ||
needs: ${{ toJSON(needs) }} | ||
- if: ${{ steps.check.outputs.isSuccess == 'false' }} | ||
uses: elastic/oblt-actions/slack/send@v1 | ||
>>>>>>> 3351902f8 (updatecli: use updatecli policies (#13934)) | ||
with: | ||
bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
channel-id: "#apm-server" | ||
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>" |