generated from osc/skins-template
test
This commit is contained in:
@@ -73,7 +73,7 @@ jobs:
|
|||||||
echo 'ALL_SKINS_DIR<<EOF'
|
echo 'ALL_SKINS_DIR<<EOF'
|
||||||
for s in "${skins[@]}"; do
|
for s in "${skins[@]}"; do
|
||||||
echo "$s"
|
echo "$s"
|
||||||
done
|
done > /tmp/all_skins.txt
|
||||||
echo 'EOF'
|
echo 'EOF'
|
||||||
} >> "$GITHUB_ENV"
|
} >> "$GITHUB_ENV"
|
||||||
|
|
||||||
@@ -145,6 +145,19 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "has_changes=$has_changes" >> "$GITHUB_OUTPUT"
|
echo "has_changes=$has_changes" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Upload changed skins file
|
||||||
|
if: steps.set.outputs.has_changes == 'true'
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: changed-skins
|
||||||
|
path: ${{ env.CHANGED_SKINS_FILE }}
|
||||||
|
|
||||||
|
- name: Upload all skins list
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: all-skins
|
||||||
|
path: /tmp/all_skins.txt
|
||||||
|
|
||||||
calculate_git_tag:
|
calculate_git_tag:
|
||||||
name: Calculate Git Tag
|
name: Calculate Git Tag
|
||||||
runs-on: danser
|
runs-on: danser
|
||||||
@@ -199,6 +212,23 @@ jobs:
|
|||||||
tags: true
|
tags: true
|
||||||
token: ${{ secrets.TOKEN }}
|
token: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
|
- name: Download changed skins file
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: changed-skins
|
||||||
|
path: /tmp
|
||||||
|
|
||||||
|
- name: Download all skins list
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: all-skins
|
||||||
|
path: /tmp
|
||||||
|
|
||||||
|
- name: Export skin env vars
|
||||||
|
run: |
|
||||||
|
echo "CHANGED_SKINS_FILE=/tmp/changed_skins.txt" >> "$GITHUB_ENV"
|
||||||
|
echo "ALL_SKINS_DIR=$(cat /tmp/all_skins.txt | paste -sd ' ')" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Pull Git LFS for changed skins and core assets
|
- name: Pull Git LFS for changed skins and core assets
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -914,7 +944,7 @@ jobs:
|
|||||||
tag_date=$(git log -1 --format=%ci "$tag")
|
tag_date=$(git log -1 --format=%ci "$tag")
|
||||||
formatted_date=$(TZ="Europe/Zurich" date -d "$tag_date" "+%d.%m.%Y %H:%M:%S")
|
formatted_date=$(TZ="Europe/Zurich" date -d "$tag_date" "+%d.%m.%Y %H:%M:%S")
|
||||||
echo "| [$tag]($REGISTRY_URL/${{ needs.detect_changed_skins.outputs.user_repository }}/src/tag/$tag/docs/${base_path}.md) | $formatted_date |"
|
echo "| [$tag]($REGISTRY_URL/${{ needs.detect_changed_skins.outputs.user_repository }}/src/tag/$tag/docs/${base_path}.md) | $formatted_date |"
|
||||||
fi
|
CHANGED_SKINS_FILE fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
} > "$md_file_path"
|
} > "$md_file_path"
|
||||||
|
|||||||
Reference in New Issue
Block a user