Skip to content

Commit

Permalink
fix(ci): add working directory context for version extraction in publ…
Browse files Browse the repository at this point in the history
…ish workflow
  • Loading branch information
tsinis committed Jan 24, 2025
1 parent 519b86b commit f52b1f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish_to_pub_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ jobs:
working-directory: ${{ env.relative_path }}

- name: 2️⃣ Get version from pubspec.yaml
working-directory: ${{ env.relative_path }}
run: |
PUBSPEC_VERSION=$(sed -n '1 s/version: *//p' pubspec.yaml)
echo "PUBSPEC=${PUBSPEC_VERSION}" >> $GITHUB_ENV
- name: 3️⃣ Get version from CHANGELOG.md
working-directory: ${{ env.relative_path }}
run: |
CHANGELOG_VERSION=$(sed -n '1 s/^## *//p' CHANGELOG.md)
echo "CHANGELOG=${CHANGELOG_VERSION}" >> $GITHUB_ENV
Expand Down

0 comments on commit f52b1f3

Please sign in to comment.