Fix deprecated set-env in GitHub actions.

See https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
This commit is contained in:
Michael Stenta 2020-11-18 22:03:06 -05:00
parent 2ce6c8eac0
commit 08b93b386d
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@master
- name: Set FARMOS_VERSION environment variable
run: echo ::set-env name=FARMOS_VERSION::${GITHUB_REF:10}
run: echo "FARMOS_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
# This builds the Docker image using the specified FARMOS_VERSION,
# but notably it does NOT override the default PROJECT_VERSION, so the
# farmOS Composer project 2.x branch is always used.

View File

@ -12,7 +12,7 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Set FARMOS_VERSION environment variable
run: echo ::set-env name=FARMOS_VERSION::${GITHUB_REF:11}
run: echo "FARMOS_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
- name: Build farmOS 2.x Docker image
run: docker build --build-arg FARMOS_REPO=https://github.com/${GITHUB_REPOSITORY} --build-arg FARMOS_VERSION=${FARMOS_VERSION} -t farmos/farmos:2.x docker
# This builds the dev Docker image using the specified FARMOS_VERSION,