Skip to content

Commit

Permalink
fix: ensure that the inputs.config-file file is reset
Browse files Browse the repository at this point in the history
Checks the `inputs.config-file` files back out to ensure there are no new changes
before running pre-commit.

fixes #16
  • Loading branch information
greenkiwi committed Apr 4, 2022
1 parent ff3b54c commit a6f1e6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "CI"
on:
pull_request:
push:
branches:
- main
- "releases/*"

jobs:
lint:
Expand All @@ -16,7 +12,6 @@ jobs:
# test action works running from the graph
test:
name: Test
needs: [lint]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -25,9 +20,9 @@ jobs:
fetch-depth: 0
- name: Pre-commit
uses: ./

test-pre-installed:
name: Test / Pre-commit exists
needs: [lint]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ runs:
env:
# This /github/home is the internal Docker mount of $RUNNER_TEMP/_github_home
NODE_PATH: /github/home/node_modules
- name: Clear commitlint config changes
shell: bash
run: |
git checkout "${{ inputs.config-file }}"
- name: Setup python
# Only run this if we don't already have a pre-commit on the PATH
if: env.PRE_COMMIT_BIN == null
Expand Down

0 comments on commit a6f1e6b

Please sign in to comment.