Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/dependabot-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Dependabot Push Detector

on:
push:

jobs:
detect-dependabot:
runs-on: ubuntu-24.04
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- run: echo "Dependabot PR validated"
- name: Debug workflow_run event
run: echo "${{ toJson(github.event.workflow_run) }}"
Comment on lines +10 to +13
22 changes: 22 additions & 0 deletions .github/workflows/mirror-repository-dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Mirror Repository (Dependabot)

on:
workflow_run:
workflows:
- Dependabot Push Detector
types:
- completed
Comment on lines +3 to +8

jobs:
mirror:
name: Mirror repository (with secrets)
runs-on: ubuntu-24.04
if: >
github.event.workflow_run.actor.login == 'dependabot[bot]'

steps:
- uses: actions/checkout@v6
- name: Mirror to Bitbucket
uses: Corvina-R-D/corvina-github-public-actions/mirror-public-repository@v1
with:
target: https://x-token-auth:${{ secrets.BITBUCKET_ACCESS_TOKEN }}@bitbucket.org/exorint/mirror-corvina-device-sdk-node.git
3 changes: 2 additions & 1 deletion .github/workflows/mirror-repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
mirror:
name: Mirror repository
runs-on: ubuntu-24.04
if: github.actor != 'dependabot[bot]'
steps:
- uses: Corvina-R-D/corvina-github-public-actions/mirror-public-repository@v1
with:
target: https://x-token-auth:${{ secrets.BITBUCKET_ACCESS_TOKEN }}@bitbucket.org/exorint/mirror-corvina-device-sdk-node.git
target: https://x-token-auth:${{ secrets.BITBUCKET_ACCESS_TOKEN }}@bitbucket.org/exorint/mirror-corvina-device-sdk-node.git