Skip to content

Commit

Permalink
add perms to workflow and only run on merged pr (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
littlebenlittle authored Jun 7, 2024
1 parent e69006e commit f7165fd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@ on:
- closed
push:
branches: [ci/gh-pages]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:

build-ui:
name: Build UI
# if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
defaults:
run:
Expand Down

0 comments on commit f7165fd

Please sign in to comment.