Skip to content

Commit 7617bd6

Browse files
fix(ci): implement suggested fix for permission issue on ci (#750)
1 parent 0f1455e commit 7617bd6

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/010_build_and_test.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Build and Test
2-
on:
2+
on:
33
push:
44
branches:
55
- development
@@ -18,6 +18,10 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v3
2020

21+
- name: Chown user
22+
run: |
23+
chown -R $USER:$USER $GITHUB_WORKSPACE
24+
2125
- name: Cache build
2226
uses: actions/cache@v3
2327
timeout-minutes: 6
@@ -43,6 +47,7 @@ jobs:
4347
cargo test --no-fail-fast --features runtime-benchmarks
4448
4549
- name: Integration tests
50+
if: "!contains(github.event.head_commit.message, '[skip integr]')"
4651
run: |
4752
python3.10 -m pip install robotframework==5.0.1 cryptography==3.4.8 substrate-interface==1.4.0
4853
cd substrate-node/tests
@@ -53,4 +58,3 @@ jobs:
5358
with:
5459
name: integration test output
5560
path: substrate-node/tests/_output_tests/
56-

.github/workflows/030_create_release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
srtool:
10-
runs-on: [self-hosted, tfchainrunner01]
10+
runs-on: ubuntu-latest
1111

1212
steps:
1313
- uses: actions/checkout@v3
@@ -53,7 +53,7 @@ jobs:
5353
runs-on: ubuntu-latest
5454
steps:
5555
- name: Checkout
56-
uses: actions/checkout@v2
56+
uses: actions/checkout@v3
5757

5858
- name: Download artifacts
5959
uses: actions/download-artifact@v2
@@ -86,7 +86,7 @@ jobs:
8686
env:
8787
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8888
with:
89-
upload_url: ${{ steps.create_release.outputs.upload_url }}
89+
upload_url: ${{ steps.create_release.outputs.upload_url }}
9090
asset_path: ./tfchain-runtime.wasm
9191
asset_name: tfchain-runtime.wasm
9292
asset_content_type: application/wasm

0 commit comments

Comments
 (0)