-
Notifications
You must be signed in to change notification settings - Fork 27
UpdateCLI scripts for versions.yml #1602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4cc08f3
First PR
theletterf 05cbc44
Add sources
theletterf 371bcac
Peer edits
theletterf e9389e0
Add stack target
theletterf 4f6505f
Merge branch 'main' into theletterf-add-updatecli-automation
theletterf 5b65ccf
Add negative
theletterf 6fd6704
Merge branch 'theletterf-add-updatecli-automation' of github.com:elas…
theletterf a99f524
Update versions.yml
theletterf 7cf5621
Remove ECE
theletterf 4a1f345
Replace stack version detection
theletterf d77d2e6
Avoid anchor problem with stack
theletterf 802c7ce
Merge branch 'main' into theletterf-add-updatecli-automation
theletterf 5efd252
Update versions.yml
theletterf 315325f
Update updatecli/updatecli.d/versions.yml
theletterf fd8078b
Update updatecli.yml
theletterf 85add68
Merge branch 'main' into theletterf-add-updatecli-automation
theletterf 1cfae76
Merge branch 'main' into theletterf-add-updatecli-automation
theletterf 13e416a
Update updatecli/updatecli.d/versions.yml
theletterf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: updatecli | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 5 * * 1-5" | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
|
||
jobs: | ||
bump: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get token | ||
id: get_token | ||
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | ||
with: | ||
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }} | ||
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }} | ||
permissions: >- | ||
{ | ||
"contents": "write", | ||
"pull_requests": "write" | ||
} | ||
repositories: >- | ||
["docs-builder"] | ||
|
||
- uses: elastic/oblt-actions/updatecli/run@v1 | ||
with: | ||
command: apply --config updatecli/updatecli.d/versions.yml --values updatecli/values.d/scm.yml | ||
env: | ||
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }} | ||
|
||
- if: ${{ failure() }} | ||
uses: elastic/oblt-actions/slack/send@v1 | ||
with: | ||
bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
channel-id: "#docs-team" | ||
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, please look what's going on <${{ env.JOB_URL }}|here>" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.