fix: asdf issues with updatecli in the tool-versions (#45286) #580
Workflow file for this run
This file contains hidden or 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 * * 1-6" | ||
permissions: | ||
contents: read | ||
jobs: | ||
bump: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
file: ['bump-golang.yml', 'bump-golang-7.17.yml'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
<<<<<<< HEAD | ||
- name: Install Updatecli in the runner | ||
uses: updatecli/updatecli-action@4aca518a70708e38063453d8de9c551af7f48ac3 # v0.76.1 | ||
- name: Run Updatecli in Apply mode | ||
run: updatecli --experimental apply --config .github/workflows/updatecli.d/${{ matrix.file }} --values .github/workflows/updatecli.d/values.d/scm.yml | ||
======= | ||
- uses: elastic/oblt-actions/updatecli/run-and-notify@v1 | ||
with: | ||
command: --experimental apply --config .github/workflows/updatecli.d/${{ matrix.file }} --values .github/workflows/updatecli.d/values.d/scm.yml | ||
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
slack-channel-id: "#ingest-notifications" | ||
slack-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>" | ||
slack-send-when: "failure" | ||
version-file: .updatecli-version | ||
>>>>>>> 68600b701 (fix: asdf issues with updatecli in the tool-versions (#45286)) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- if: ${{ failure() }} | ||
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 | ||
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 }}`, `@update-me-with-the-slack-team-to-be-poked` please look what's going on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>" |