mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Attempt at fixing timestamp not being added to version.
This commit is contained in:
parent
a8a6322e30
commit
cb62a13c40
1 changed files with 7 additions and 2 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -51,7 +51,13 @@ jobs:
|
|||
echo "timestamp=${TIMESTAMP}" >> $GITHUB_OUTPUT
|
||||
|
||||
# Update the timestamp in version.py
|
||||
sed -i "s/__timestamp__ = None/__timestamp__ = '${TIMESTAMP}'/" version.py
|
||||
echo "Updating timestamp to ${TIMESTAMP} in version.py"
|
||||
sed -i "s/__timestamp__ = None.*/__timestamp__ = '${TIMESTAMP}' # Set during CI/CD build process/" version.py
|
||||
cat version.py # Verify the file was updated correctly
|
||||
|
||||
# Make the version.py change part of the Docker build context
|
||||
git add version.py
|
||||
git commit -m "Update build timestamp [skip ci]" || echo "No changes to commit"
|
||||
|
||||
- name: Extract version info
|
||||
id: version
|
||||
|
|
@ -90,7 +96,6 @@ jobs:
|
|||
echo "is_fork=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "is_fork=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue