Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/craws/OpenAtlas into dev…
Browse files Browse the repository at this point in the history
…elop
  • Loading branch information
AlexanderWatzinger committed Oct 18, 2023
2 parents 315eba1 + 7ebe17a commit 20e0731
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check_updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ on:
jobs:
check_for_updates:
runs-on: ubuntu-latest
outputs:
check_result: ${{ steps.check_openatlas_container.outputs.check_result }}
steps:
- name: check OpenAtlas container
id: check_openatlas_container
run: |
check_result="$(docker run --rm -u 0:0 --entrypoint /bin/bash ghcr.io/acdh-oeaw/openatlas/container-preview \
check_result="$(docker run --rm -u 0:0 --entrypoint /bin/bash ghcr.io/acdh-oeaw/openatlas/container-preview:${{ github.ref_name }} \
-c 'apt-get update >/dev/null; if [ $(apt list --upgradable 2>/dev/null | wc -l) != 1 ]; then echo -n need to upgrade; else echo -n everything fine ; fi')"
echo "$check_result"
echo "check_result=$check_result" >> $GITHUB_OUTPUT
call_delploy:
needs: [check_for_updates]
if: ${{ toJson(needs.check_for_updates.outputs.check_result == 'need to upgrade') }}
if: needs.check_for_updates.outputs.check_result == 'need to upgrade'
uses: ./.github/workflows/starter.yaml
secrets: inherit

0 comments on commit 20e0731

Please sign in to comment.