Skip to content

Commit fd7038b

Browse files
committed
Fix uploading tags artifact
1 parent 6d056f1 commit fd7038b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/build-one.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ jobs:
5050
run: |
5151
cp -r tools /tmp
5252
docker run -v /tmp/tools:/tools \
53-
rhub/r-minimal:test bash -c "/tools/calculate_tags.sh ${{ inputs.rversion }}"
54-
cp "$GITHUB_OUTPUT" tags.txt
53+
rhub/r-minimal:test \
54+
bash -c "/tools/calculate_tags.sh ${{ inputs.rversion }}" \
55+
| tail -1 > tags.txt
5556
cat tags.txt
5657
shell: bash
5758

.github/workflows/r-devel-daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
cat ./tags.txt
7777
- run: |
7878
# Create the manifest lists and push them to the respective registries
79-
for tag in `echo ${{ needs.amd64.outputs.tags }} | tr ',' ' '`; do
79+
for tag in `cat tags.txt | tr ',' ' '`; do
8080
echo docker buildx imagetools create -t $tag \
8181
ghcr.io/r-hub/r-minimal/r-minimal:${{ matrix.config.r }}-amd64 \
8282
ghcr.io/r-hub/r-minimal/r-minimal:${{ matrix.config.r }}-arm64;

tools/calculate_tags.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function calculate() {
141141
tags=$(calculate_raw "$@")
142142
echo "Tags to add: $tags"
143143
ftags="$(prefix_tags "$tags")"
144-
echo "::set-output name=tags::${ftags}"
144+
echo "${ftags}"
145145
}
146146

147147
function main() {

0 commit comments

Comments
 (0)