Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"

- name: Create release branch
run: |
git checkout -b release/${{ needs.build.outputs.version }}

- name: Create release notes from changelog
id: release-notes
run: |
Expand Down Expand Up @@ -134,13 +138,33 @@ jobs:
name: vsix
path: ./vsix

- name: Commit and push package modifications
- name: Commit changes
run: |
git add CHANGELOG.md
git add package.json
git add package-lock.json
git commit -m "release: updated package to ${{ needs.build.outputs.version }} [skip ci]"
git push

- name: Push changes
run: |
git push origin release/${{ needs.build.outputs.version }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "release: updated package to ${{ needs.build.outputs.version }} [skip ci]"
title: "Release ${{ needs.build.outputs.version }}"
body: |
This PR contains the changes for release ${{ needs.build.outputs.version }}.
Changes:
- Updated version in package.json
- Updated changelog
branch: release/${{ needs.build.outputs.version }}
base: master
labels: |
release
${{ needs.build.outputs.version }}

- name: Create a release
id: new_release
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,8 @@ jobs:
path: |
./fabric8-analytics-${{ steps.ea_version.outputs.version }}.vsix
./fabric8-analytics-${{ steps.ea_version.outputs.version }}.vsix.sha256

- name: Output artifact download URL
run: |
echo "::notice::Download the early access package from: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
echo "::notice::Package version: ${{ steps.ea_version.outputs.version }}"