Skip to content

{Build} Link thread for vrsplayer #25

{Build} Link thread for vrsplayer

{Build} Link thread for vrsplayer #25

Workflow file for this run

name: VRS Release
on: [push]
jobs:
get-current-version:
if: github.repository == 'facebookresearch/vrs'
runs-on: ubuntu-latest
steps:
- name: checkout-repo-content
uses: actions/checkout@v4
- name: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: get current version and tag
id: get-current-version-and-tag
run: |
output=$(python3 release_utils.py --get-current-version)
echo $output
current_version=$(echo $output | awk '{print $1}')
current_tag=$(echo $output | awk '{print $2}')
echo "current version is $current_version"
echo "current tag is $current_tag"
echo "version=$current_version" >> $GITHUB_OUTPUT
echo "tag=$current_tag" >> $GITHUB_OUTPUT
outputs:
current_version: ${{ steps.get-current-version-and-tag.outputs.version }}
current_tag: ${{ steps.get-current-version-and-tag.outputs.tag }}
create-release-if-not-exist:
if: github.repository == 'facebookresearch/vrs'
runs-on: ubuntu-latest
needs:
- get-current-version
steps:
- id: get-latest-tag
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
- name: checkout-repo-content
uses: actions/checkout@v4
- name: Create release
if: needs.get-current-version.outputs.current_tag != steps.get-latest-tag.outputs.release
uses: ncipollo/release-action@v1
with:
tag: '${{ needs.get-current-version.outputs.current_tag }}'