Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored Nov 17, 2023
1 parent d36fdd5 commit 21ee075
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/preflight.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
name: UpLeveled Preflight check
name: Preflight
on: [push]

jobs:
Preflight-check:
name: UpLeveled Preflight check
preflight:
name: Preflight
runs-on: ubuntu-latest

steps:
- name: Get UpLeveled check image
- name: Pull latest Preflight image
run: docker pull ghcr.io/upleveled/preflight
- name: Run Get UpLeveled check image
run: |
MY_STRING=$(docker run ghcr.io/upleveled/preflight https://github.com/${{ github.repository}} ${{ github.ref_name }})
echo $MY_STRING
MY_STRING="${MY_STRING//'%'/'%25'}"
MY_STRING="${MY_STRING//$'\n'/'%0A'}"
MY_STRING="${MY_STRING//$'\r'/'%0D'}"
if [[ $MY_STRING == *"FAILED"* ]]; then
exit 1
fi
- name: Run Preflight
run: docker run ghcr.io/upleveled/preflight https://github.com/${{ github.repository}} ${{ github.ref_name }}

0 comments on commit 21ee075

Please sign in to comment.