Skip to content

Commit 7a01651

Browse files
authored
Setting in GITHUB_ENV only sets the value in _subsequent_ steps (#7612)
1 parent 3577b38 commit 7a01651

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,17 @@ jobs:
101101
options: "--user root --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE"
102102

103103
steps:
104-
- name: "Checkout dependencies"
104+
- name: "Set SOURCE_DATE_EPOCH"
105105
shell: bash
106106
run: |
107107
set -ex
108108
echo "Setting SOURCE_DATE_EPOCH env variable to ${{ needs.image_digest.outputs.SOURCE_DATE_EPOCH }}"
109109
echo "SOURCE_DATE_EPOCH=${{ needs.image_digest.outputs.SOURCE_DATE_EPOCH }}" >> $GITHUB_ENV
110+
111+
- name: "Checkout dependencies"
112+
shell: bash
113+
run: |
114+
set -ex
110115
gpg --import /etc/pki/rpm-gpg/MICROSOFT-RPM-GPG-KEY
111116
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y update
112117
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y install ca-certificates git

0 commit comments

Comments
 (0)