Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rachfop committed Dec 21, 2023
1 parent 4f6196b commit ae900bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/create-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ jobs:

- name: Generate branch version string
run: |
BRANCH_NAME="${{ github.ref }}"
BRANCH_VERSION=$(echo $BRANCH_NAME | tr -cd '0-9.')
BRANCH_VERSION="${{ github.ref }}"
echo "BRANCH_VERSION=$BRANCH_VERSION" >> $GITHUB_ENV
- name: Create version of docs for branch 🚀
uses: readmeio/rdme@v8
with:
rdme: versions:create v1.0-${{ env.BRANCH_VERSION }} --key=${{ secrets.README_API_KEY }} --fork=1.0 --main=false --beta=true --deprecated=false --isPublic=false
rdme: versions:create v1.0-${{ env.BRANCH_VERSION }} --key=${{ secrets.README_API_KEY }} --fork=1.0 --main=false --beta=true --deprecated=false --isPublic=false
3 changes: 1 addition & 2 deletions .github/workflows/delete-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:

- name: Generate branch version string
run: |
BRANCH_NAME="${{ github.head_ref || github.ref || github.event.ref }}"
BRANCH_VERSION=$(echo $BRANCH_NAME | tr -cd '0-9.')
BRANCH_VERSION="${{ github.ref }}"
echo "BRANCH_VERSION=$BRANCH_VERSION" >> $GITHUB_ENV
- name: Delete version of docs for branch (if branch is deleted) 🚀
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:

- name: Generate branch version string
run: |
BRANCH_NAME="${{ github.head_ref || github.ref || github.event.ref }}"
BRANCH_VERSION=$(echo $BRANCH_NAME | tr -cd '0-9.')
BRANCH_VERSION="${{ github.ref }}"
echo "BRANCH_VERSION=$BRANCH_VERSION" >> $GITHUB_ENV
- name: DryRun for debugging
Expand Down

0 comments on commit ae900bf

Please sign in to comment.