Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit 60196ee

Browse files
Refactor: Change reusable workflows to use the main branch instead of release branch (#24)
* feat: changed workflows and added a new one for publishing on the marketplace Signed-off-by: Adroaldo Neto <adroaldo.neto@zup.com.br> * chore: removed unused secrets Signed-off-by: Adroaldo Neto <adroaldo.neto@zup.com.br> * merge: solved merge with stash apply Signed-off-by: Matheus Ferreira <matheus.ferreira@zup.com.br> * refactor: change uppercase to lowercase Signed-off-by: Matheus Ferreira <matheus.ferreira@zup.com.br> Signed-off-by: Adroaldo Neto <adroaldo.neto@zup.com.br> Signed-off-by: Matheus Ferreira <matheus.ferreira@zup.com.br> Co-authored-by: Adroaldo Neto <adroaldo.neto@zup.com.br>
1 parent 09ec1c0 commit 60196ee

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.github/workflows/check-callback.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ on:
2121
type: [SECURITY, RELEASE, RELEASED]
2222

2323
jobs:
24-
CHECK_CALLBACK:
24+
check_callback:
25+
name: Check Callback
2526
runs-on: ubuntu-latest
2627
steps:
2728
- name: Callback - ${{ github.event.client_payload.state }}
@@ -56,9 +57,12 @@ jobs:
5657
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
5758
}'
5859
59-
PUSBLISH:
60-
if: ${{ success() && github.event.event_type == 'RELEASED' }}
61-
uses: stack-spot/stackspot-intellij-extension/.github/workflows/publish-release.yml@release-0.1.4
60+
publish:
61+
name: Publish Plugin in Marketplace
62+
needs:
63+
- check_callback
64+
if: ${{ success() && github.event.event_type == 'RELEASED' }}
65+
uses: stack-spot/stackspot-intellij-extension/.github/workflows/publish-release.yml@main
6266
secrets:
6367
accessToken: ${{ secrets.ACCESS_TOKEN }}
6468
publishToken: ${{ secrets.PUBLISH_TOKEN }}

.github/workflows/publish-release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ concurrency:
3131
cancel-in-progress: true
3232

3333
jobs:
34-
EXPORT_PROPERTIES:
34+
export_properties:
35+
name: Export Properties
3536
runs-on: ubuntu-latest
3637
outputs:
3738
changelog: ${{ steps.properties.outputs.changelog }}
@@ -53,8 +54,8 @@ jobs:
5354
echo "::set-output name=changelog::$CHANGELOG"
5455
5556
# Prepare and publish the plugin to the Marketplace repository
56-
PUBLISH:
57-
name: Publish Plugin
57+
publish:
58+
name: Publish Plugin in Marketplace
5859
runs-on: ubuntu-latest
5960
steps:
6061

@@ -81,9 +82,10 @@ jobs:
8182
run: |
8283
gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
8384
84-
CHANGELOG:
85+
changelog:
86+
name: Changelog
8587
needs:
86-
- EXPORT_PROPERTIES
88+
- export_properties
8789
runs-on: ubuntu-latest
8890
steps:
8991
# Check out current repository

0 commit comments

Comments
 (0)