Skip to content

Commit c834acf

Browse files
Merge pull request #326 from cerna/github-actions-set-env
Use new format for setting of ENV variables
2 parents dcc1ccc + 893b55d commit c834acf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-preview-pages.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Create output directory
4040
run: |
4141
mkdir ./${{ env.OUTPUT_NAME }}
42-
echo ::set-env name=OUTPUT_DIRECTORY::$(pwd)/${{ env.OUTPUT_NAME }}
42+
echo "OUTPUT_DIRECTORY=$(pwd)/${{ env.OUTPUT_NAME }}" >> "$GITHUB_ENV"
4343
echo "The output directory is ${{ env.OUTPUT_DIRECTORY }}"
4444
mkdir ./${{ env.OUTPUT_NAME }}/build
4545

.github/workflows/ping-remote-repository.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
str="${{ github.repository }}"
2020
IFS='/'
2121
read -ra ARRA <<< "$str"
22-
echo ::set-env name=PARSED_USERNAME::${ARRA[0]}
23-
echo ::set-env name=PARSED_LOCAL_REPOSITORY::${ARRA[1]}
22+
echo "PARSED_USERNAME=${ARRA[0]}" >> "$GITHUB_ENV"
23+
echo "PARSED_LOCAL_REPOSITORY=${ARRA[1]}" >> "$GITHUB_ENV"
2424
2525
# Another shell is needed for the environment variables to take effect
2626
- name: Print parsed Github handle and repository
@@ -38,4 +38,4 @@ jobs:
3838
token: ${{ secrets.ROBOT_TOKEN }}
3939
repository: ${{ env.PARSED_USERNAME }}/machinekit.github.io
4040
event-type: rebuild-site-now
41-
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "authorization": "${{ secrets.DOCUMENTATION_PING_KEYCODE }}", "originating_repository": "${{ env.PARSED_USERNAME }}/${{ env.PARSED_LOCAL_REPOSITORY }}"}'
41+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "originating_repository": "${{ env.PARSED_USERNAME }}/${{ env.PARSED_LOCAL_REPOSITORY }}"}'

0 commit comments

Comments
 (0)