Update versions of Elastic Stack dependencies #83
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: Update versions of Elastic Stack dependencies | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 1 * * 1-5' | |
pull_request: | |
paths: | |
- .github/updatecli.d/* | |
- .github/workflows/bump-elastic-stack-version.yml | |
permissions: | |
contents: read | |
jobs: | |
bump-elastic-stack: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select diff action | |
if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
echo "UPDATECLI_ACTION=diff" >> $GITHUB_ENV | |
- name: Select apply action | |
if: ${{ github.event_name != 'pull_request' }} | |
run: | | |
echo "UPDATECLI_ACTION=apply" >> $GITHUB_ENV | |
- name: Install Updatecli in the runner | |
uses: updatecli/updatecli-action@3a8785d88ec4fa03d86521a181f37c0e74627463 #v2.64.0 | |
- name: Update default stack version | |
# --experimental needed for commitusingapi option. | |
run: updatecli --experimental ${{ env.UPDATECLI_ACTION }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |