Skip to content

Commit

Permalink
Revert "chore: add pre-commit downstream workflows (#386)"
Browse files Browse the repository at this point in the history
This reverts commit ad9c600.
  • Loading branch information
clavedeluna authored Mar 25, 2024
1 parent 38f7cca commit e4036d0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- main
- develop
merge_group:
workflow_call:

concurrency:
group: (${{ github.workflow }}-${{ github.event.inputs.branch || github.event.pull_request.head.ref }})
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,14 @@ on:
jobs:
auto-update:
runs-on: ubuntu-latest
outputs:
diff: ${{ steps.check-diff.outputs.diff }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: browniebroke/pre-commit-autoupdate-action@main
- uses: peter-evans/create-pull-request@v6
id: pr-create
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
title: Update pre-commit hooks
commit-message: "chore: update pre-commit hooks"
body: Update versions of pre-commit hooks to latest version.
- name: Set outputs
id: check-diff
if: |
(steps.pr-create.outputs.pull-request-operation == 'created' ||
steps.pr-create.outputs.pull-request-operation == 'updated') &&
steps.pr-create.outputs.pull-request-number
run: |
echo "diff=true" >> "$GITHUB_OUTPUT"
echo "PR status: ${{ steps.pr-create.outputs.pull-request-operation }}"
echo "PR number: ${{ steps.pr-create.outputs.pull-request-number }}"
echo "Running workflows for ${{ steps.pr-create.outputs.pull-request-url }}"
lint-workflow:
name: Run lint
needs: auto-update
if: ${{ needs.auto-update.outputs.diff }}
uses: ./.github/workflows/lint.yml

test-workflow:
name: run tests on diff
needs: auto-update
if: ${{ needs.auto-update.outputs.diff }}
uses: ./.github/workflows/test.yml
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
- develop
- "[0-9]+.[0-9]+.x"
merge_group:
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down

0 comments on commit e4036d0

Please sign in to comment.