Skip to content

Commit

Permalink
chore(ci): add permissions and run edit only on twios branch
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Sep 21, 2023
1 parent 5d74877 commit e1c3bfe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/twios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ env:
TWIOS_BRANCH: "master"
TWIOS_PR_REF: ${{ github.event.pull_request.head.ref }}

permissions:
pull-requests: write

jobs:
create_twios:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -43,7 +46,7 @@ jobs:
edit_twios:
runs-on: ubuntu-latest
if: github.event.pull_request.body
if: ${{github.event.pull_request.body && contains(github.event.pull_request.head.ref, 'twios')}}
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4
Expand Down

0 comments on commit e1c3bfe

Please sign in to comment.