Skip to content

Commit

Permalink
Test release workflow passing tag to docker workflow third (And more …
Browse files Browse the repository at this point in the history
…trusted) trial
  • Loading branch information
AliOsm committed Jun 29, 2024
1 parent a11300a commit ffe3608
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
jobs:
build-and-push-image:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
contents: read
packages: write
Expand All @@ -31,13 +32,22 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Download version artifact
uses: actions/download-artifact@v3
with:
name: version
- name: Read version
id: read-version
run: |
version=$(cat version.txt)
echo "version=$version" >> $GITHUB_ENV
- name: Determine version tag
id: version-tag
run: |
if [ -n "${{ github.event.inputs.tagInput }}" ]; then
echo "tag=${{ github.event.inputs.tagInput }}" >> "$GITHUB_OUTPUT"
else
echo "tag=${{ github.event.workflow_run.conclusion.outputs.version }}" >> "$GITHUB_OUTPUT"
echo "tag=${{ env.version }}" >> "$GITHUB_OUTPUT"
fi
- name: Build and push
uses: docker/build-push-action@v3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ jobs:
- run: python -m pip install build twine && python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
- name: Set output version
run: echo "version=${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
run: echo "version=${{ github.event.release.tag_name }}" >> version.txt
- name: Upload version artifact
uses: actions/upload-artifact@v3
with:
name: version
path: version.txt
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tafrigh"
version = "1.4.6"
version = "1.4.7"
description = "تفريغ النصوص وإنشاء ملفات SRT و VTT باستخدام نماذج Whisper وتقنية wit.ai."
authors = ["EasyBooks <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit ffe3608

Please sign in to comment.