Skip to content

Commit

Permalink
undoing workflow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Jul 28, 2023
1 parent e03d638 commit f6feaed
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Clang-Format

on:
pull_request:
# Trigger the workflow on pull requests from any repository
branches:
- '*'
types:
- synchronize

jobs:
format:
Expand Down Expand Up @@ -34,17 +29,4 @@ jobs:
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git commit -am "Auto-format code using Clang-Format" || echo "No changes to commit"
git push
- name: Trigger tests
if: github.event.inputs.manual-trigger == 'true' || github.event_name == 'pull_request'
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data } = await github.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'test.yml',
});
console.log(data);
git push

0 comments on commit f6feaed

Please sign in to comment.