Skip to content

Commit

Permalink
chore(twios): run on specific label
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Sep 21, 2023
1 parent 5667cfa commit 821ecb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/twios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ on:
# Every Sunday 23:00
- cron: '0 23 * * 0'
pull_request:
types: [unlabeled]
types: [labeled, unlabeled]
issue_comment:
types: [edited]
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWIOS_BRANCH: ${{ github.ref || 'master' }}
TWIOS_BRANCH: ${{ github.event.pull_request.head.ref || 'master' }}
TWIOS_PR_REF: ${{ github.event.pull_request.head.ref }}

permissions:
Expand All @@ -19,7 +19,7 @@ permissions:
jobs:
create_twios:
runs-on: ubuntu-latest
if: ${{!github.event.pull_request.body && github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event.action == 'unlabeled'}}
if: ${{!github.event.pull_request.body && github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'twios'}}
steps:
- uses: actions/checkout@v3
- name: Fetch $TWIOS_BRANCH
Expand Down

0 comments on commit 821ecb0

Please sign in to comment.