Skip to content

Update popup position on scrollend #8

Update popup position on scrollend

Update popup position on scrollend #8

Workflow file for this run

name: Update README version badge
on:
push:
tags:
- 'v*'
jobs:
update-badge:
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 README with version badge
run: |
TAG=${{ steps.get_tag.outputs.tag }}
BADGE_URL="https://img.shields.io/badge/version-${TAG}-brightgreen"
sed -i "s|!\\[Version Badge\\](.*)|![Version Badge](${BADGE_URL})|" README.md
- 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 README.md
git commit -m "Update version badge 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