Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
hadithmv committed Dec 30, 2023
1 parent 626f807 commit 630477f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/mirror-action-bitbucket.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/mirror-to-bitbucket-github-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Mirror repository to bitbucket

on: [push]

jobs:
secrets-gate:
runs-on: ubuntu-latest
outputs:
ok: ${{ steps.check-secrets.outputs.ok }}
steps:
- name: check for secrets exist
id: check-secrets
run: |
if [ ! -z "${{ secrets.BITBUCKET_USERNAME }}" ]; then
echo "::set-output name=ok::true"
fi
sync:
needs:
- secrets-gate
if: ${{ needs.secrets-gate.outputs.ok == 'true' }}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Push
uses: uorz-me/mirror2bitbucket@nodocker
with:
# username: ${{ secrets.BITBUCKET_USERNAME }}
password: ${{ secrets.BITBUCKET_PASSWORD }}

0 comments on commit 630477f

Please sign in to comment.