bump-elastic-stack-snapshot #385
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-elastic-stack-snapshot | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 15 * * 1-5' | |
permissions: | |
contents: read | |
jobs: | |
filter: | |
runs-on: ubuntu-latest | |
timeout-minutes: 1 | |
outputs: | |
matrix: ${{ steps.generator.outputs.matrix }} | |
steps: | |
- id: generator | |
uses: elastic/apm-pipeline-library/.github/actions/elastic-stack-snapshot-branches@current | |
bump-elastic-stack: | |
runs-on: ubuntu-latest | |
needs: [filter] | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.filter.outputs.matrix) }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.branch }} | |
- uses: elastic/oblt-actions/updatecli/[email protected] | |
with: | |
command: --experimental apply --config .ci/bump-elastic-stack-snapshot.yml | |
env: | |
BRANCH: ${{ matrix.branch }} | |
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }} | |
- if: ${{ failure() }} | |
uses: elastic/oblt-actions/slack/[email protected] | |
with: | |
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>" | |
bot-token: ${{ secrets.SLACK_BOT_TOKEN }} |