Skip to content

Commit

Permalink
πŸ”€ Merge pull request #3 from Fedodo/dev
Browse files Browse the repository at this point in the history
πŸ‘· Updated prepare to Prepare Dart pipeline
  • Loading branch information
LNA-DEV authored Jun 24, 2023
2 parents 50f67c0 + 7a2e39f commit 0850f98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 36 deletions.
38 changes: 3 additions & 35 deletions .github/workflows/BuildAndPublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set PUBSPEC_VERSION
run: |
version=$(grep 'version:' pubspec.yaml | tail -n1 | awk '{ print $2}')
echo $version
echo "PUBSPEC_VERSION=$version" >> "$GITHUB_ENV"
- run: echo "${{ env.PUBSPEC_VERSION }}"

- name: Check for Tag
run: |
TAG="v${{ env.PUBSPEC_VERSION }}"
if git show-ref --tags --verify --quiet "refs/tags/${TAG}"; then
echo "Tag ${TAG} exists"
exit 1
else
echo "Tag ${TAG} does not exist"
fi
- name: Update Changelog
run: |
commits=$(git log $(git describe --tags --abbrev=0)..HEAD --oneline | cut -c 8- | sed -e 's|^|- |' | cat | sed ':a;N;$!ba;s|\n|\\n|g')
sed -i "1s|^|## v${{ env.PUBSPEC_VERSION }}\n\n$(echo "$commits")\n\n|" CHANGELOG.md
- name: Commit Changelog
uses: test-room-7/action-update-file@v1
with:
file-path: CHANGELOG.md
commit-msg: πŸ“ Updated Changelog
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Fedodo/Fedodo.Pipelines/PrepareDart@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CreateTag:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: activitypub
description: A library for the ActivityPub standard. Created an also used by Fedodo.
version: 1.1.2
version: 1.1.3
repository: https://github.com/Fedodo/Fedodo.Pub.ActivityPub

environment:
Expand Down

0 comments on commit 0850f98

Please sign in to comment.