FirebaseExtended / FirebaseExtended/action-hosting-deploy

[BUG] Question on usage to ignore PR's from dependabot

Open
#268 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
809
Forks
232
PR merge metrics
No merged PRs in 30d

Description

### Action config
currently we are using Deploy to Firebase Hosting on PR and we have several repo's that contain the config below. When we receive a pull request from dependabot the action fails due to permissions. How can this config be changed to ignore the action (skip or no run) when the PR is opened by dependabot. Thanks for any input on this...

example:
name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLUI_REACT_SHOWCASE }}'
expires: 2d
projectId: blui-react-showcase

### Error message

https://github.com/etn-ccis/blui-angular-design-patterns/actions/runs/4318181010/jobs/7536164488

### Expected behavior

### Actual behavior

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.