Skip to content

Commit

Permalink
Merge pull request #231 from snow-actions/released-tweet
Browse files Browse the repository at this point in the history
Released-tweet
  • Loading branch information
SnowCait authored Aug 13, 2022
2 parents 3621290 + f348342 commit d23f606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Version up
name: Increment version

on:
workflow_dispatch:
inputs:
semantic:
increment-version:
description: Semantic versioning
required: true
default: patch
Expand All @@ -14,7 +14,7 @@ on:
- patch

jobs:
version-up:
increment-version:
runs-on: ubuntu-20.04
timeout-minutes: 5

Expand All @@ -24,12 +24,12 @@ jobs:
id: version
run: |
set -x
version=$(npm --no-git-tag-version version $SEMANTIC)
version=$(npm --no-git-tag-version version $INCREMENT_VERSION)
echo "::set-output name=version::${version}"
sed -i -e "s|${GITHUB_REPOSITORY}@v[.0-9]\+|${GITHUB_REPOSITORY}@${version}|g" README.md
sed -i -e "s|${GITHUB_REPOSITORY}@v[.0-9]\+|${GITHUB_REPOSITORY}@${version}|g" README.md .github/workflows/released.yml
git diff
env:
SEMANTIC: ${{ github.event.inputs.semantic }}
INCREMENT_VERSION: ${{ github.event.inputs.increment-version }}
- uses: snow-actions/[email protected]
- id: generate_token
uses: tibdex/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/released.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Tweet
uses: snow-actions/tweet@v1.2.1
uses: snow-actions/tweet@v1.3.0
with:
status: |
Release ${{ github.event.release.name }} · ${{ github.repository }}
Expand Down

0 comments on commit d23f606

Please sign in to comment.