Skip to content

Commit ecf2836

Browse files
committed
MAINTENANCE: Resolve SET ENVIRONMENT issue in GitHub Actions
GitHub deprecated setting of environment variables in steps via the SET ENVIRONMENT format and instead requires the ENVIRONMENT FILE format. This caused failures in the workflows. Also remove sending of transmission password in payload.
1 parent dcc1ccc commit ecf2836

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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)