mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 13:59:48 +00:00
Fixed environment variable access
This commit is contained in:
parent
0e8d6d9542
commit
2b6db06fd0
12
.github/workflows/build-and-release.yml
vendored
12
.github/workflows/build-and-release.yml
vendored
@ -48,11 +48,11 @@ jobs:
|
|||||||
- name: Check tag vs. metadata version
|
- name: Check tag vs. metadata version
|
||||||
run: |
|
run: |
|
||||||
# Ensure, that the tag matches the version in the metadata file:
|
# Ensure, that the tag matches the version in the metadata file:
|
||||||
if [ "${GITHUB_REF}" != "refs/tags/${env.FORMATTED_VERSION}" ]; then
|
if [ "${GITHUB_REF}" != "refs/tags/${FORMATTED_VERSION}" ]; then
|
||||||
echo "Tag '${GITHUB_REF}' does not match the version in the metadata file '${env.FORMATTED_VERSION}'"
|
echo "Tag '${GITHUB_REF}' does not match the version in the metadata file '${FORMATTED_VERSION}'"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Tag '${GITHUB_REF}' matches the version in the metadata file '${env.FORMATTED_VERSION}'"
|
echo "Tag '${GITHUB_REF}' matches the version in the metadata file '${FORMATTED_VERSION}'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Read changelog
|
- name: Read changelog
|
||||||
@ -60,14 +60,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Ensure, that the matching changelog file for the current version exists:
|
# Ensure, that the matching changelog file for the current version exists:
|
||||||
if [ ! -f "app/MindWork AI Studio/wwwroot/changelog/${env.FORMATTED_VERSION}.md" ]; then
|
if [ ! -f "app/MindWork AI Studio/wwwroot/changelog/${env.FORMATTED_VERSION}.md" ]; then
|
||||||
echo "Changelog file 'app/MindWork AI Studio/wwwroot/changelog/${env.FORMATTED_VERSION}.md' not found"
|
echo "Changelog file 'app/MindWork AI Studio/wwwroot/changelog/${FORMATTED_VERSION}.md' not found"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Changelog file '${env.FORMATTED_VERSION}.md' found"
|
echo "Changelog file '${FORMATTED_VERSION}.md' found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Read the changelog file:
|
# Read the changelog file:
|
||||||
changelog=$(cat "app/MindWork AI Studio/wwwroot/changelog/${env.FORMATTED_VERSION}.md")
|
changelog=$(cat "app/MindWork AI Studio/wwwroot/changelog/${FORMATTED_VERSION}.md")
|
||||||
|
|
||||||
# Set the output:
|
# Set the output:
|
||||||
echo "changelog<<EOOOF" >> "$GITHUB_OUTPUT"
|
echo "changelog<<EOOOF" >> "$GITHUB_OUTPUT"
|
||||||
|
Loading…
Reference in New Issue
Block a user