Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/test-oblt-cli-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: elastic/oblt-actions/git/setup@v1
- uses: ./oblt-cli/setup
with:
github-token: ${{ secrets.OBLT_CLI_GITHUB_TOKEN }}
- name: Verify oblt-cli version
run: |
version=$(oblt-cli version 2>&1)
default_version=$(cat ./oblt-cli/setup/.default-oblt-cli-version)
oblt-cli version
version="$(oblt-cli version 2>&1)"
echo "$version"
default_version="$(cat ./oblt-cli/setup/.default-oblt-cli-version)"
[[ "$version" == *"version ${default_version}"* ]]

tools-versions:
Expand Down Expand Up @@ -118,3 +121,15 @@ jobs:
run: |
version=$(oblt-cli version 2>&1)
[[ "$version" == *"version 7.3.0"* ]]

test-test-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: elastic/oblt-actions/git/setup@v1
- uses: ./oblt-cli/setup
with:
github-token: ${{ secrets.OBLT_CLI_GITHUB_TOKEN }}
- name: Verify oblt-cli version
run: |
oblt-cli version
2 changes: 1 addition & 1 deletion oblt-cli/setup/.default-oblt-cli-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.5.1
7.5.3
18 changes: 14 additions & 4 deletions oblt-cli/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ inputs:
runs:
using: composite
steps:
- run: echo "$CI"
shell: bash
- run: echo "$CI"
shell: bash
- run: echo "$CI"
shell: bash
- name: Download oblt-cli and append to PATH
run: ${{ github.action_path }}/download.sh
env:
Expand All @@ -33,10 +39,14 @@ runs:
OBLT_CLI_VERSION_FILE: ${{ inputs.version-file }}
shell: bash
- name: Configure oblt-cli
run: >
oblt-cli configure
--git-http-mode
--username="${OBLT_CLI_USERNAME}"
run: |
echo "${CI}"
echo "${CI}"
echo "${CI}"
echo "${CI}"
oblt-cli configure \
--git-http-mode \
--username="${OBLT_CLI_USERNAME}" \
--slack-channel="${OBLT_CLI_SLACK_CHANNEL}"
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
Expand Down