Skip to content

Commit

Permalink
Mirror repository workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Liora Milbaum <[email protected]>
  • Loading branch information
lmilbaum committed Apr 7, 2024
1 parent c3a95af commit 5448e89
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/mirror-repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Mirror Repository

on:
push:
branches:
- main

pull_request: ## temporary for debugging development purposes
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-latest
steps:
- uses: actions/[email protected]

- name: Push to mirror Repository
run: |
git remote add mirror https://github.com/containers-mirror/ai-lab-recipes.git
git push mirror main
- 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 }}

0 comments on commit 5448e89

Please sign in to comment.