Skip to content

Add dashboard position via css #7

Add dashboard position via css

Add dashboard position via css #7

Workflow file for this run

name: Update HTML version
on:
push:
tags:
- 'v*'
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Get the latest tag
id: get_tag
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
- name: Update version in HTML
run: |
TAG=${{ steps.get_tag.outputs.tag }}
sed -i "s/VERSION_PLACEHOLDER/$TAG/" index.html
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git fetch origin
git checkout -B main origin/main # or the branch you are working on
git add index.html
git commit -m "Update version to ${{ steps.get_tag.outputs.tag }}"
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} HEAD:main # push changes to the same branch