Skip to content

Commit

Permalink
changed job for github
Browse files Browse the repository at this point in the history
  • Loading branch information
t34-dev committed Aug 16, 2024
1 parent 7351cc4 commit 9592ff2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@ jobs:
- name: Update README.md badges
run: |
current_time=$(date +%s)
sed -i 's/\(v=\)[0-9]*/\1'"$current_time"'/g' README.md
sed -i 's/\(ver=\)[0-9]*/\1'"$current_time"'/g' README.md
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
git diff --quiet && git diff --staged --quiet || git commit -m "Update version to ${{ steps.get_version.outputs.VERSION }}"
git commit -m "Update version to ${{ steps.get_version.outputs.VERSION }}"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
run: |
git push origin HEAD:${{ github.event.repository.default_branch }}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![Coverage Status](https://coveralls.io/repos/github/t34-dev/go-text-replacer/badge.svg?branch=main&v=1722867172)](https://coveralls.io/github/t34-dev/go-text-replacer?branch=main&v=1722867172)
![Go Version](https://img.shields.io/badge/Go-1.22-blue?logo=go&v=1722867172)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/t34-dev/go-text-replacer?v=1722867172)
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/t34-dev/go-text-replacer?sort=semver&style=flat&logo=git&logoColor=white&label=Latest%20Version&color=blue&v=1722867172)
[![Coverage Status](https://coveralls.io/repos/github/t34-dev/go-text-replacer/badge.svg?branch=main&ver=1722867172)](https://coveralls.io/github/t34-dev/go-text-replacer?branch=main&ver=1722867172)
![Go Version](https://img.shields.io/badge/Go-1.22-blue?logo=go&ver=1722867172)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/t34-dev/go-text-replacer?ver=1722867172)
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/t34-dev/go-text-replacer?sort=semver&style=flat&logo=git&logoColor=white&label=Latest%20Version&color=blue&ver=1722867172)

# Go-Text-Replacer

Expand Down

0 comments on commit 9592ff2

Please sign in to comment.