git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #95126 from zowoq/rm-actions

.github/workflows: disable

commitd6a445fe821052861b379d9b6c02d21623c25464 authorJörg Thalheim <Mic92@users.noreply.github.com> dateTue 11 Aug 2020, 04:28 (6 years ago) parent0ea35cfcde25fe
2 files changed−66
.github/workflows/editorconfig.yml−29 .github/workflows/wait-ofborg.yml−37
.github/workflows/editorconfig.ymldeleted−29
@@ -1,29 +0,0 @@
1−name: "Checking EditorConfig"
2−
3−on:
4− pull_request:
5−
6−jobs:
7− tests:
8− runs-on: ubuntu-latest
9− steps:
10− - uses: actions/checkout@v2
11− with:
12− fetch-depth: 0
13− - uses: technote-space/get-diff-action@v3.0.0
14− - name: Fetch editorconfig-checker
15− if: env.GIT_DIFF
16− env:
17− VERSION: "2.1.0"
18− OS: "linux"
19− ARCH: "amd64"
20− ECC_URL: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download"
21− run: |
22− curl -sSf -O -L -C - $ECC_URL/$VERSION/ec-$OS-$ARCH.tar.gz && \
23− tar xzf ec-$OS-$ARCH.tar.gz && \
24− mv ./bin/ec-$OS-$ARCH ./bin/editorconfig-checker
25− - name: Checking EditorConfig
26− if: env.GIT_DIFF
27− run: |
28− ./bin/editorconfig-checker -disable-indentation \
29− ${{ env.GIT_DIFF }}
.github/workflows/wait-ofborg.ymldeleted−37
@@ -1,37 +0,0 @@
1−name: "Wait for ofborg"
2−on:
3− pull_request:
4−jobs:
5− tests:
6− runs-on: ubuntu-latest
7− steps:
8− - name: Wait for ofborg CI
9− run: |
10− # Wait for ofborg ...
11− # eval sometimes takes a bit longer on staging.
12− if [[ "$BASE_BRANCH" == "staging" ]]; then
13− COUNTDOWN=$((COUNTDOWN*2))
14− fi
15− # ..in future a better fix would be to make ofborg mark CI as pending right away.
16− for i in $(seq "$COUNTDOWN"); do
17− res=$(curl --silent \
18− -H "Accept: application/vnd.github.antiope-preview+json" \
19− -H "Authorization: token ${GITHUB_TOKEN}" \
20− "https://api.github.com/repos/NixOS/nixpkgs/commits/${COMMIT}/check-runs" | \
21− jq ".check_runs | map(.app) | map(.id) | contains([${OFBORG_APP_ID}])")
22− if [[ "$res" == "true" ]]; then
23− exit 0
24− fi
25− sleep 5
26− echo "."
27− done
28− echo "Timeout!"
29− exit 1
30− # ofborg is not checking forks.
31− if: github.repository_owner == 'NixOS'
32− env:
33− BASE_BRANCH: ${{ github.base_ref }}
34− COUNTDOWN: 540 # wait for ~45min...
35− GITHUB_TOKEN: ${{ github.token }}
36− COMMIT: ${{ github.event.pull_request.head.sha }}
37− OFBORG_APP_ID: 20500