diff --git a/.github/workflows/update_deps.yml b/.github/workflows/update_deps.yml index eb813be..0677a3e 100644 --- a/.github/workflows/update_deps.yml +++ b/.github/workflows/update_deps.yml @@ -49,10 +49,13 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.12 + - name: check for latest version + - id: check-latest-splunk - run: | pip install -r requirements.txt - python splunk_matrix_update.py - echo $splunk_version + splunk_version=$(python splunk_matrix_update.py) + echo "splunk_version=splunk_version" >> "$GITHUB_OUTPUT" +# echo $splunk_version - uses: crazy-max/ghaction-import-gpg@v6 with: gpg_private_key: ${{ secrets.SA_GPG_PRIVATE_KEY }} @@ -60,6 +63,7 @@ jobs: git_user_signingkey: true git_commit_gpgsign: true - name: Create PR with new version + if: if [[ "${{ steps.check-latest-splunk.outputs.splunk_version }}" == "true" ]] run: | git config --global user.email ${{ secrets.GH_USER_EMAIL }} git config --global user.name ${{ secrets.GH_USER_ADMIN }}