Skip to content

Commit

Permalink
Update container.yml (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Jan 5, 2024
1 parent 233b89a commit af8f179
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
required: true

env:
server_repo: ${{ inputs.tachidesk_release_type == 'stable' && 'Tachidesk-Server' || 'Tachidesk-Server-preview' }}
server_repo: ${{ inputs.tachidesk_release_type == 'stable' && 'Suwayomi-Server' || 'Suwayomi-Server-preview' }}
test_image_tag: ghcr.io/suwayomi/tachidesk:testing
this_actions_run_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

Expand Down Expand Up @@ -84,10 +84,10 @@ jobs:
chmod -R 777 ${{ runner.temp }}/tachidesk
docker run --rm -d -p 127.0.0.1:4568:4567 -v ${{ runner.temp }}/tachidesk:/home/suwayomi/.local/share/Tachidesk --name=suwayomi_test ${{ env.test_image_tag }}
sleep 15
curl -s 127.0.0.1:4568/api/v1/settings/about/ && val=$(curl -s 127.0.0.1:4568/api/v1/settings/about/ | grep -o "Tachidesk" | sort --unique)
curl -s 127.0.0.1:4568/api/v1/settings/about/ && val=$(curl -s 127.0.0.1:4568/api/v1/settings/about/ | grep -o "Suwayomi" | sort --unique)
docker logs suwayomi_test > ${{ runner.temp }}/tachidesk.log
if [[ $val != "Tachidesk" ]]; then
echo "Did not find Tachidesk in server response: ${val}"
if [[ $val != "Suwayomi" ]]; then
echo "Did not find Suwayomi in server response: ${val}"
curl \
-F 'payload_json={"username": "Github", "content": "<@855022649926221854>\nDocker ${{ inputs.tachidesk_release_type }} image dry run failed! 😢 Version - ${{ steps.get_latest_release_metadata.outputs.release_tag }}. [See the full run log](${{ env.this_actions_run_url }})"}' \
-F "file1=@${{ runner.temp }}/tachidesk.log" \
Expand Down

0 comments on commit af8f179

Please sign in to comment.