Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Jul 11, 2024
1 parent 08c11ff commit 7de42cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ jobs:
- uses: actions/checkout@v4
- uses: ./action
with:
image: ${{ needs.image.outputs.tags }}
mode: summary-only
fail: false
image: ${{ needs.image.outputs.tags }}

deploy:
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down
16 changes: 7 additions & 9 deletions action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Restyler
author: pbrisbin

inputs:
image:
description: "Restyled image to run"
default: "restyled/restyler:edge"
mode:
description: "summary-only|pull-request|push"
default: "pull-request"
fail-on-differences:
fail:
description: "Fail if differences were produced?"
default: true
image:
description: "Restyled image to run"
default: "restyled/restyler:edge"
log-level:
description: "Set restyler LOG_LEVEL"
default: "info"
Expand All @@ -24,9 +24,7 @@ runs:
using: composite
steps:
# pre-conditions
# correct env?
# not excluded by labels?
# not excluded by author?
# check ignores

# Determine changed files
- id: prep
Expand All @@ -47,7 +45,6 @@ runs:

# Restyle changed files
# TODO: make commits

- if: ${{ steps.prep.outputs.changed }}
shell: bash
run: |
Expand All @@ -73,5 +70,6 @@ runs:

# post-actions:
# print patch to build summary
# commit directly | open new PR | direct to summary
# options: commit directly | open new PR | nothing
# option: fail if differences
# close any sibling PR?

0 comments on commit 7de42cb

Please sign in to comment.