Skip to content

Commit

Permalink
refactor: updating batch workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pattishin committed Oct 7, 2023
1 parent ef8f7dc commit 3044c08
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/batch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,19 @@ on:
- '.github/workflows/batch.yaml'
schedule:
- cron: '0 0 * * 0'
env:
REPO: ${{ github.repository }}
jobs:
test:
permissions:
contents: 'read'
id-token: 'write'
if: github.repository == 'GoogleCloudPlatform/nodejs-docs-samples' && github.event.action == 'labeled'
uses: ./.github/workflows/test.yaml
with:
name: 'batch'
path: 'batch'
test-target:
permissions:
contents: 'read'
id-token: 'write'
if: github.repository == 'renovate-bot/nodejs-docs-samples' && github.event.action == 'labeled'
if: |
(
github.repository == 'GoogleCloudPlatform/nodejs-docs-samples' &&
github.event.action != 'labeled'
) ||
github.event.label.name == 'actions:force-run'
uses: ./.github/workflows/test.yaml
with:
name: 'batch'
Expand Down

0 comments on commit 3044c08

Please sign in to comment.