Skip to content

Merge pull request #393 from Gregory-Pereira/hardcode-repo-in-workflo… #162

Merge pull request #393 from Gregory-Pereira/hardcode-repo-in-workflo…

Merge pull request #393 from Gregory-Pereira/hardcode-repo-in-workflo… #162

name: Mirror Repository
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
mirror-repository:
if: github.repository == 'containers/ai-lab-recipes'
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: pixta-dev/[email protected]
with:
target_repo_url:
[email protected]:containers-mirror/ai-lab-recipes.git
ssh_private_key:
${{ secrets.SSH_PRIVATE_KEY }}
- name: Publish Job Results to Slack
id: slack
if: always()
uses: slackapi/[email protected]
with:
payload: |
{
"text": "${{ github.workflow }} workflow status: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}