AWS_DEFAULT_REGION was missing in our cron github actions (#240)
This commit is contained in:
parent
7bcf9f17d8
commit
3b53d74bb7
12
.github/workflows/cron.yml
vendored
12
.github/workflows/cron.yml
vendored
|
@ -20,7 +20,8 @@ jobs:
|
||||||
- 20.03
|
- 20.03
|
||||||
|
|
||||||
env:
|
env:
|
||||||
S3_URL: s3://nix-releases/nixpkgs
|
AWS_DEFAULT_REGION: us-east-1
|
||||||
|
AWS_S3_URL: s3://nix-releases/nixpkgs
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -49,12 +50,13 @@ jobs:
|
||||||
- name: Check for latest evaluation in ${{ matrix.channel }} channel
|
- name: Check for latest evaluation in ${{ matrix.channel }} channel
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.channel }}" = "unstable" ]; then
|
if [ "${{ matrix.channel }}" = "unstable" ]; then
|
||||||
RELEASE=$(aws s3 ls --no-sign-request "$S3_URL/" | grep "/$" | cut -d" " -f29 | sort | tail -1 | sed 's|/||')
|
RELEASE=$(aws s3 ls --no-sign-request "$AWS_S3_URL/" | grep '/$' | cut -d' ' -f29 | sort | tail -1 | sed 's|/||')
|
||||||
else
|
else
|
||||||
RELEASE=$(aws s3 ls --no-sign-request "$S3_URL/" | grep "nixpkgs-${{ matrix.channel }}pre" | grep "/$" | cut -d" " -f29 | sort | tail -1 | sed 's|/||')
|
RELEASE=$(aws s3 ls --no-sign-request "$AWS_S3_URL/" | grep 'nixpkgs-${{ matrix.channel }}pre' | grep '/$' | cut -d' ' -f29 | sort | tail -1 | sed 's|/||')
|
||||||
fi
|
fi
|
||||||
aws s3 cp --no-sign-request "$S3_URL/$RELEASE/src-url" ./
|
aws s3 cp --no-sign-request "$AWS_S3_URL/$RELEASE/src-url" ./
|
||||||
echo "EVAL_ID=$(cat src-url | cut -c30-)" >> $GITHUB_ENV
|
EVAL_ID=$(cat src-url | cut -c30-)
|
||||||
|
echo "EVAL_ID=${EVAL_ID}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Download latest builds for ${{ matrix.channel }} channel (if needed)
|
- name: Download latest builds for ${{ matrix.channel }} channel (if needed)
|
||||||
if: steps.eval-cache.outputs.cache-hit != 'true'
|
if: steps.eval-cache.outputs.cache-hit != 'true'
|
||||||
|
|
Loading…
Reference in a new issue