Skip to content

Commit

Permalink
fix latest tag name
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Leszczynski <[email protected]>
  • Loading branch information
pawel-big-lebowski committed Oct 4, 2024
1 parent f34e8ab commit 0cb027c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/website-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
repository: 'Openlineage/openlineage-site'
path: 'target'
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
#token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 22
Expand All @@ -36,16 +36,14 @@ jobs:
- name: Generate new version
run: |
cd source
LATEST_VERSION=$(git tag --sort=taggerdate | tail -1)
echo latest version is $LATEST_VERSION
echo "LATEST_VERSION=${LATEST_VERSION}" >> "$GITHUB_ENV"
echo latest version is $GITHUB_REF_NAME
cd ../target
if [ -d "versioned_docs/version-$LATEST_VERSION" ]
if [ -d "versioned_docs/version-$GITHUB_REF_NAME" ]
then
echo "Version already exists. skipping"
else
echo "Generating version $LATEST_VERSION"
yarn run docusaurus docs:version $LATEST_VERSION
echo "Generating version $GITHUB_REF_NAME"
yarn run docusaurus docs:version $GITHUB_REF_NAME
fi
- name: Push target repo
run: |
Expand All @@ -54,6 +52,6 @@ jobs:
git config user.email "<>"
git add .
if ! git diff-index --quiet HEAD; then
git commit -m "Generating new version $LATEST_VERSION"
git commit -m "Generating new version $GITHUB_REF_NAME"
git push
fi

0 comments on commit 0cb027c

Please sign in to comment.