diff options
author | Valentin Popov <valentin@popov.link> | 2025-06-25 12:51:49 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2025-06-25 12:51:49 +0300 |
commit | 3eca4026289b86fc038137215c88fcb8b686b3d6 (patch) | |
tree | 8440faefcb45e0273747499e8439959c64828563 /.github | |
parent | 1127bf0349fb5731b91d2c707b4036313f07c0db (diff) | |
download | auth_http-3eca4026289b86fc038137215c88fcb8b686b3d6.tar.xz auth_http-3eca4026289b86fc038137215c88fcb8b686b3d6.zip |
Replace main workflow with a new mirror workflow for better structure and functionality
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/main.yml | 17 | ||||
-rw-r--r-- | .github/workflows/mirror.yml | 25 |
2 files changed, 25 insertions, 17 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index bfa3e8b..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Workflow - -on: [push] - -jobs: - mirror: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - uses: yesolutions/mirror-action@master - with: - REMOTE: 'https://git.popov.link/moodle/auth_http.git' - GIT_USERNAME: ${{ secrets.GIT_USERNAME }} - GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..d4f0b33 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,25 @@ +name: Mirror + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Mirror to remote repository + uses: yesolutions/mirror-action@master + with: + REMOTE: "https://git.popov.link/moodle/auth_http.git" + GIT_USERNAME: ${{ secrets.GIT_USERNAME }} + GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} |