mirror of
https://github.com/multipleof4/.github.git
synced 2026-01-13 15:27:54 +00:00
Delete workflows/repo-mirror.yml
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
repo:
|
||||
required: true
|
||||
type: string
|
||||
jobs:
|
||||
mirror:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
shopt -s dotglob extglob
|
||||
rm -rf !(.git|.github)
|
||||
- run: |
|
||||
u='${{ inputs.repo }}'
|
||||
curl -fsSL -o src.tgz https://codeload.github.com/$u/tar.gz/master
|
||||
tar -xzf src.tgz
|
||||
d=$(tar -tzf src.tgz|head -1|cut -d/ -f1)
|
||||
shopt -s dotglob extglob
|
||||
mv "$d"/!(".github") .
|
||||
rm -rf "$d" src.tgz
|
||||
- run: |
|
||||
git config user.name "github-actions"
|
||||
git config user.email "github-actions@github.com"
|
||||
git add .
|
||||
git commit -m "This build was committed by a bot."
|
||||
git push
|
||||
Reference in New Issue
Block a user