diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml deleted file mode 100644 index d79ea9a98f2..00000000000 --- a/.github/workflows/editorconfig.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: "Checking EditorConfig" - -on: - pull_request: - -jobs: - tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: technote-space/get-diff-action@v3.0.0 - - name: Fetch editorconfig-checker - if: env.GIT_DIFF - env: - VERSION: "2.1.0" - OS: "linux" - ARCH: "amd64" - ECC_URL: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download" - run: | - curl -sSf -O -L -C - $ECC_URL/$VERSION/ec-$OS-$ARCH.tar.gz && \ - tar xzf ec-$OS-$ARCH.tar.gz && \ - mv ./bin/ec-$OS-$ARCH ./bin/editorconfig-checker - - name: Checking EditorConfig - if: env.GIT_DIFF - run: | - ./bin/editorconfig-checker -disable-indentation \ - ${{ env.GIT_DIFF }} diff --git a/.github/workflows/wait-ofborg.yml b/.github/workflows/wait-ofborg.yml deleted file mode 100644 index 6ddf00bb1ef..00000000000 --- a/.github/workflows/wait-ofborg.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: "Wait for ofborg" -on: - pull_request: -jobs: - tests: - runs-on: ubuntu-latest - steps: - - name: Wait for ofborg CI - run: | - # Wait for ofborg ... - # eval sometimes takes a bit longer on staging. - if [[ "$BASE_BRANCH" == "staging" ]]; then - COUNTDOWN=$((COUNTDOWN*2)) - fi - # ..in future a better fix would be to make ofborg mark CI as pending right away. - for i in $(seq "$COUNTDOWN"); do - res=$(curl --silent \ - -H "Accept: application/vnd.github.antiope-preview+json" \ - -H "Authorization: token ${GITHUB_TOKEN}" \ - "https://api.github.com/repos/NixOS/nixpkgs/commits/${COMMIT}/check-runs" | \ - jq ".check_runs | map(.app) | map(.id) | contains([${OFBORG_APP_ID}])") - if [[ "$res" == "true" ]]; then - exit 0 - fi - sleep 5 - echo "." - done - echo "Timeout!" - exit 1 - # ofborg is not checking forks. - if: github.repository_owner == 'NixOS' - env: - BASE_BRANCH: ${{ github.base_ref }} - COUNTDOWN: 540 # wait for ~45min... - GITHUB_TOKEN: ${{ github.token }} - COMMIT: ${{ github.event.pull_request.head.sha }} - OFBORG_APP_ID: 20500