Skip to content

Commit 0fc59e9

Browse files
committed
Update checkout version and fix deprecated envvars
1 parent 0c735f3 commit 0fc59e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
- name: Extract tag/branch variables
99
shell: bash
1010
run: >
11-
echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/}|grep -v '/')";
12-
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/}|grep -v '/')";
11+
echo "tag=$(echo ${GITHUB_REF#refs/tags/}|grep -v '/')" >> $GITHUB_OUTPUT
12+
echo "branch=$(echo ${GITHUB_REF#refs/heads/}|grep -v '/')" >> $GITHUB_OUTPUT
1313
id: extract
1414
- name: Write secret keys
1515
run: >
@@ -19,9 +19,9 @@ jobs:
1919
then
2020
eval "$(ssh-agent)";
2121
ssh-add firehol_org_publish_key;
22-
echo "##[set-output name=has_ssh_key;]true";
23-
echo "##[set-output name=ssh_agent_pid;]$SSH_AGENT_PID";
24-
echo "##[set-output name=ssh_auth_sock;]$SSH_AUTH_SOCK";
22+
echo "has_ssh_key=true" >> $GITHUB_OUTPUT
23+
echo "ssh_agent_pid=$SSH_AGENT_PID" >> $GITHUB_OUTPUT
24+
echo "ssh_auth_sock=$SSH_AUTH_SOCK" >> $GITHUB_OUTPUT
2525
fi;
2626
rm -f firehol_org_publish_key
2727
env:
@@ -40,7 +40,7 @@ jobs:
4040
echo "Not publishing '${{steps.extract.outputs.branch}}'";
4141
echo "##[set-output name=skip;]true"
4242
id: check
43-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v4
4444
- run: ./.github/workflows/setup.sh
4545
- run: make
4646
- name: Deploy website ${{steps.extract.outputs.branch}}

0 commit comments

Comments
 (0)