diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..673c699f --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @RDXWorks-actions/devops diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index d490a138..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,26 +0,0 @@ -version: 2 -updates: -- package-ecosystem: npm - directory: "/" - schedule: - interval: daily - time: "04:00" - pull-request-branch-name: - separator: "-" - open-pull-requests-limit: 10 - ignore: - - dependency-name: filesize - versions: - - 6.2.6 - - 6.3.0 - - dependency-name: adm-zip - versions: - - 0.5.3 -- package-ecosystem: github-actions - directory: "/" - schedule: - interval: daily - time: "04:00" - pull-request-branch-name: - separator: "-" - open-pull-requests-limit: 10 diff --git a/.github/workflows/download.yml b/.github/workflows/download.yml deleted file mode 100644 index 03c2d14f..00000000 --- a/.github/workflows/download.yml +++ /dev/null @@ -1,225 +0,0 @@ -name: Download - -on: - push: - branches: - - master - pull_request: - -jobs: - wait: - runs-on: ubuntu-latest - steps: - - name: Wait - run: sleep 60 - download-latest: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact - path: artifact - - name: Test - run: cat artifact/sha | grep $GITHUB_SHA - download-branch: - runs-on: ubuntu-latest - needs: wait - if: github.ref == 'refs/heads/master' - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact - path: artifact - branch: master - - name: Test - run: cat artifact/sha | grep $GITHUB_SHA - download-pr: - runs-on: ubuntu-latest - needs: wait - if: github.ref != 'refs/heads/master' - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact - path: artifact - pr: ${{github.event.pull_request.number}} - - name: Test - run: cat artifact/sha | grep $GITHUB_SHA - download-commit: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact - path: artifact - commit: ${{ github.event.workflow_run.head_sha }} - - name: Test - run: cat artifact/sha | grep $GITHUB_SHA - download-multiple: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - - name: Test - run: | - cat artifact/sha | grep $GITHUB_SHA - cat artifact1/sha1 | grep $GITHUB_SHA - cat artifact2/sha2 | grep $GITHUB_SHA - download-regexp: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact. - name_is_regexp: true - - name: Test - run: | - cat artifact1/sha1 | grep $GITHUB_SHA - cat artifact2/sha2 | grep $GITHUB_SHA - ! test -d artifact/artifact - ! test -f artifact.zip - download-empty-conclusion: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact - path: artifact - workflow_conclusion: - - name: Test - run: cat artifact/sha | grep $GITHUB_SHA - download-skip-unpack: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact - path: artifact - skip_unpack: true - - name: Test - run: | - test -d artifact - test -f artifact/artifact.zip - ! test -d artifact/artifact - ! test -f artifact.zip - unzip -l artifact/artifact.zip - download-dry-run-exists: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - id: download - uses: ./ - with: - workflow: upload.yml - name: artifact - path: artifact - dry_run: true - - name: Test - run: test ${{ steps.download.outputs.dry_run }} == true - download-dry-run-not-exists: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - id: download - uses: ./ - with: - workflow: upload.yml - name: not-artifact - path: artifact - dry_run: true - - name: Test - run: test ${{ steps.download.outputs.dry_run }} == false - download-with-check-artifacts: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact - path: artifact - check_artifacts: true - - name: Test - run: cat artifact/sha | grep $GITHUB_SHA - download-with-search-artifacts: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact - path: artifact - search_artifacts: true - - name: Test - run: cat artifact/sha | grep $GITHUB_SHA - download-regexp-with-search-artifacts: - runs-on: ubuntu-latest - needs: wait - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Download - uses: ./ - with: - workflow: upload.yml - name: artifact. - name_is_regexp: true - path: artifact - search_artifacts: true - - name: Test - run: | - cat artifact/artifact1/sha1 | grep $GITHUB_SHA - cat artifact/artifact2/sha2 | grep $GITHUB_SHA - ! test -d artifact/artifact/artifact - ! test -f artifact/artifact.zip diff --git a/.github/workflows/fork-sync.yml b/.github/workflows/fork-sync.yml new file mode 100644 index 00000000..72213650 --- /dev/null +++ b/.github/workflows/fork-sync.yml @@ -0,0 +1,20 @@ +name: Sync Fork + +on: + schedule: + - cron: '0 1 * * 0' + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: tgymnich/fork-sync@v1.8 + with: + owner: dawidd6 + base: master + head: master + auto_merge: false + retries: 2 + retry_after: 10 + ignore_fail: true diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml deleted file mode 100644 index f8183ccf..00000000 --- a/.github/workflows/upload.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Upload - -on: - push: - branches: - - master - pull_request: - -jobs: - upload: - runs-on: ubuntu-latest - steps: - - name: Dump - run: | - mkdir artifact - echo $GITHUB_SHA > artifact/sha - - name: Upload - uses: actions/upload-artifact@v3 - with: - name: artifact - path: artifact - upload-multiple: - runs-on: ubuntu-latest - steps: - - name: Dump - run: | - mkdir artifact1 artifact2 - echo $GITHUB_SHA > artifact1/sha1 - echo $GITHUB_SHA > artifact2/sha2 - - name: Upload first - uses: actions/upload-artifact@v3 - with: - name: artifact1 - path: artifact1 - - name: Upload second - uses: actions/upload-artifact@v3 - with: - name: artifact2 - path: artifact2