Skip to content

Commit

Permalink
Update Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xKhronoz committed Jan 26, 2024
1 parent 9ae42b3 commit d9a8782
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/check-file-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ name: Check file size
on: # or directly `on: [push]` to run the action on every push on any branch
pull_request:
branches: [main]

# to run this workflow manually from the Actions tab
workflow_dispatch:
# to run this workflow from another workflow
workflow_call:

jobs:
check-file-size:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/node-js-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]
# to run this workflow from another workflow
workflow_call:

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check file size
uses: ./.github/workflows/check-file-size.yml
- name: Build Node.js app
uses: ./.github/workflows/node-js-tests.yml
- name: Build Python package
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]
# to run this workflow from another workflow
workflow_call:

permissions:
contents: read
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sync-to-deployment-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
# - cron: '*/30 * * * *' # every 30 minutes
# to run this workflow manually from the Actions tab
workflow_dispatch:
# to run this workflow from another workflow
workflow_call:

jobs:
sync-deployment-fork:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sync-to-hugging-face-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
# branches: [main]
# to run this workflow manually from the Actions tab
workflow_dispatch:
# to run this workflow from another workflow
workflow_call:

jobs:
sync-to-hub:
Expand Down

0 comments on commit d9a8782

Please sign in to comment.