Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLA-1311 Test additional outputs #20

Merged
merged 2 commits into from
Apr 16, 2024
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
14 changes: 10 additions & 4 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ jobs:
is-existing-release: ${{ steps.pre_release.outputs.is-existing-release }}
steps:
- name: Perform pre-release actions
uses: abusix/github-release-actions/perform-pre-release@v0.1.0
uses: abusix/github-release-actions/perform-pre-release@PLA-1131-additional-outputs
thomaswienecke marked this conversation as resolved.
Show resolved Hide resolved
id: pre_release
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
release-version: ${{github.ref_name}}

- name: Echo the outputs
run: |
echo "releaseId: ${{ steps.pre_release.outputs.release-id }}"
echo "isExistingRelease: ${{ steps.pre_release.outputs.is-existing-release }}"
echo "release-id: ${{ steps.pre_release.outputs.release-id }}"
echo "is-existing-release: ${{ steps.pre_release.outputs.is-existing-release }}"
echo "release-url ${{ steps.pre_release.outputs.release-url }}"

deploy-production:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,7 +57,12 @@ jobs:
docker push ghcr.io/${{ github.repository }}:latest

- name: Perform post-release actions
uses: abusix/github-release-actions/[email protected]
uses: abusix/github-release-actions/perform-post-release@PLA-1131-additional-outputs
id: post_release
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
release-id: ${{ needs.prepare-production-deployment.outputs.release-id }}

- name: Echo the outputs
run: |
echo "release-url: ${{ steps.post_release.outputs.release-url }}"
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
APP_VERSION=${{ env.RELEASE_VERSION }}

- name: Create release
uses: abusix/github-release-actions/create-prerelease@v0.1.0
uses: abusix/github-release-actions/create-prerelease@PLA-1131-additional-outputs
with:
release-version: ${{ env.RELEASE_VERSION }}
github-token: ${{ secrets.GITHUB_TOKEN }}