update-specs #210
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
--- | |
# Send PRs to the subscribed ECS Agents if the spec files (JSON) are modified | |
name: update-specs | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * *' | |
permissions: | |
contents: read | |
jobs: | |
compose: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: elastic/oblt-actions/updatecli/run@v1 | |
with: | |
command: --experimental compose diff | |
env: | |
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }} | |
- uses: elastic/oblt-actions/updatecli/run@v1 | |
with: | |
command: --experimental compose apply | |
env: | |
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }} | |
- if: failure() | |
uses: elastic/oblt-actions/slack/send@v1 | |
with: | |
bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | |
channel-id: "#apm-agent-nodejs" | |
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>" |