Skip to content

Commit

Permalink
https://github.com/actions/runner/issues/691
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsday committed Nov 29, 2021
1 parent 3b0a1a1 commit 3121386
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,20 @@ on:
- publish

jobs:
configure:
runs-on: ubuntu-latest
outputs:
uid_gid: ${{ steps.get-user.outputs.uid_gid }}
steps:
- id: get-user
run: echo "::set-output name=uid_gid::$(id -u):$(id -g)"

build:
runs-on: ubuntu-latest
needs: configure
container:
image: dfinity/ic-build-nix:latest
options: --user ubuntu
options: --user ${{ needs.configure.outputs.uid_gid }}
steps:
- uses: actions/checkout@v2
- name: build canister
Expand Down

0 comments on commit 3121386

Please sign in to comment.