set up secrets in the pr action #38
1 changed files with 10 additions and 1 deletions
11
.github/workflows/pr.yml
vendored
11
.github/workflows/pr.yml
vendored
|
@ -17,6 +17,14 @@ jobs:
|
||||||
experimental-features = nix-command flakes ca-derivations
|
experimental-features = nix-command flakes ca-derivations
|
||||||
post-build-hook = ${{ github.workspace }}/scripts/post-build-hook
|
post-build-hook = ${{ github.workspace }}/scripts/post-build-hook
|
||||||
substituters = https://cache.chir.rs/
|
substituters = https://cache.chir.rs/
|
||||||
|
- name: Set up secrets
|
||||||
|
run: |
|
||||||
|
echo "$NIX_CACHE_KEY" > ~/cache.key
|
||||||
|
sudo mkdir /root/.aws
|
||||||
|
echo "$AWS_CREDENTIALS" | sudo tee /root/.aws/credentials > /dev/null
|
||||||
|
env:
|
||||||
|
NIX_CACHE_KEY: ${{secrets.NIX_CACHE_KEY}}
|
||||||
|
AWS_CREDENTIALS: ${{secrets.AWS_CREDENTIALS}}
|
||||||
- run: |
|
- run: |
|
||||||
|
|
||||||
for job in nixos-8gb-fsn1-1 nutty-noon thinkrac installer nas; do
|
for job in nixos-8gb-fsn1-1 nutty-noon thinkrac installer nas; do
|
||||||
|
@ -34,8 +42,9 @@ jobs:
|
||||||
python scripts/diff-drvs.py old-$job.json new-$job.json >> review
|
python scripts/diff-drvs.py old-$job.json new-$job.json >> review
|
||||||
echo '```' >> review
|
echo '```' >> review
|
||||||
done
|
done
|
||||||
|
mv review .github/workflows
|
||||||
- uses: harupy/comment-on-pr@master
|
- uses: harupy/comment-on-pr@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.workspace }}/${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
filename: review
|
filename: review
|
||||||
|
|
Loading…
Reference in a new issue