Skip to content

Update Download Link #5

Update Download Link

Update Download Link #5

name: Update Download Link
on:
release:
types: [published]
jobs:
update-downlad-link:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update
run:
version=$(git describe --tags --abbrev=0)
new_link="https://github.com/subhoghoshX/Samay/releases/download/$version/samay-$version.zip"
sed -i "s/\[zip file\](.*)/\[zip file\]\($new_link\)/g" README.md
# Sent PR
- run: git add .
- run: git commit -m "Update download link"
- run: gh pr create -B "update-link-for-$version" -H main --title 'Update download link' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}