Added if check to see if image exists before retagging steps work on it #1231
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Prettier Format | |
| on: | |
| pull_request: | |
| branches: [dev] | |
| jobs: | |
| prettier: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: cats-frontend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.head_ref }} | |
| persist-credentials: false | |
| - name: CATS-Frontend Prettify code | |
| uses: creyD/prettier_action@v4.3 | |
| with: | |
| prettier_options: --check ./cats-frontend/src/**/*.{js,ts,jsx,tsx,json,css} --ignore-path ./cats-frontend/.prettierignore --config ./cats-frontend/.prettierrc | |
| only_changed: True | |
| dry: True | |
| - name: Formatting issues found | |
| if: failure() | |
| run: echo "::warning::Code formatting check failed. Try running npm run format in the project that caused the error and commit your changes" |