Skip to content

Commit

Permalink
[Dependencies] - Update .github/workflows/approve-dependabot.yml to m…
Browse files Browse the repository at this point in the history
…atch the template repo
  • Loading branch information
credfeto committed Oct 26, 2023
1 parent 385a40e commit b2392be
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/approve-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ on:
jobs:
enable-auto-merge:
if: |-
${{endsWith(github.repository, '-template') &&
startsWith(github.head_ref, 'dependabot/github_actions/')}}
endsWith(github.repository, '-template') &&
startsWith(github.head_ref, 'dependabot/github_actions/')
runs-on: ubuntu-latest

permissions:
Expand All @@ -42,8 +42,8 @@ jobs:

auto_approve_dependabot:
if: |-
${{endsWith(github.repository, '-template') &&
startsWith(github.head_ref, 'dependabot/github_actions/')}}
endsWith(github.repository, '-template') &&
startsWith(github.head_ref, 'dependabot/github_actions/')
runs-on: ubuntu-latest

permissions:
Expand All @@ -56,10 +56,9 @@ jobs:
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE"
- name: "Check Repo Owner"
shell: bash
run: echo "${{"github.repository_owner}}"
run: echo "${{github.repository_owner}}"
- name: "Approve"
uses: hmarr/auto-approve-action@v3
with:
github-token: ${{secrets.SOURCE_PUSH_TOKEN}}


0 comments on commit b2392be

Please sign in to comment.