1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Remove GITHUB_SHA from jobs.<job_id>.steps.env

because default value overrides it.
https://help.github.com/en/articles/virtual-environments-for-github-actions#environment-variables
This commit is contained in:
Kazuhiro NISHIYAMA 2019-08-28 09:20:07 +09:00
parent 767992329e
commit 17c0ce3798
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A
3 changed files with 0 additions and 7 deletions

View file

@ -20,8 +20,6 @@ jobs:
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
- name: Checkout ruby/ruby
run: git clone --depth=10 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA"
env:
GITHUB_SHA: ${{ github.sha }}
if: github.event_name == 'schedule'
- name: Checkout a pull request
run: git clone --depth=10 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV"
@ -52,7 +50,6 @@ jobs:
aws s3 cp lcov-all.info.xz s3://rubyci/coverage/lcov-all-"$GITHUB_SHA".info.xz
aws s3 sync lcov-out s3://rubyci/coverage-latest-html
env:
GITHUB_SHA: ${{ github.sha }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: github.event_name == 'schedule'

View file

@ -25,8 +25,6 @@ jobs:
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
- name: Checkout ruby/ruby
run: git clone --depth=50 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA"
env:
GITHUB_SHA: ${{ github.sha }}
if: github.event_name == 'push'
- name: Checkout a pull request
run: git clone --depth=50 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV"

View file

@ -24,8 +24,6 @@ jobs:
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
- name: Checkout ruby/ruby
run: git clone --depth=50 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA"
env:
GITHUB_SHA: ${{ github.sha }}
if: github.event_name == 'push'
- name: Checkout a pull request
run: git clone --depth=50 "--branch=$GITHUB_BRANCH" "https://github.com/${GITHUB_REPO}" . && git reset --hard "$GITHUB_REV"