Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
y-polek committed Jun 8, 2024
1 parent 376f8db commit 61b08d4
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ jobs:
- name: Export Properties
id: properties
run: |
echo "::set-output name=version::$(./gradlew properties --console=plain -q | grep "^version:" | cut -f2- -d ' ')"
echo "::set-output name=name::$(./gradlew properties --console=plain -q | grep "^name:" | cut -f2- -d ' ')"
echo "::set-output name=pluginName::$(./gradlew properties --console=plain -q | grep "^pluginName:" | cut -f2- -d ' ')"
echo "version=$(./gradlew properties --console=plain -q | grep "^version:" | cut -f2- -d ' ')" >> $GITHUB_OUTPUT
echo "name=$(./gradlew properties --console=plain -q | grep "^name:" | cut -f2- -d ' ')" >> $GITHUB_OUTPUT
echo "pluginName=$(./gradlew properties --console=plain -q | grep "^pluginName:" | cut -f2- -d ' ')" >> $GITHUB_OUTPUT
CHANGELOG=$(./gradlew getChangelog --unreleased --no-header --console=plain -q)
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "::set-output name=changelog::$CHANGELOG"
echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT
# Build artifact using buildPlugin Gradle task
- name: Build Plugin
Expand All @@ -131,3 +131,15 @@ jobs:
name: ${{ steps.properties.outputs.pluginName }}-${{ steps.properties.outputs.version }}.zip
path: ./build/distributions/
if-no-files-found: error

print_outputs:
name: Print outputs
needs: build
runs-on: ubuntu-latest
steps:
- name: Print output variables
run: |
echo "name=${{ needs.build.outputs.name }}"
echo "version=${{ needs.build.outputs.version }}"
echo "artifact=${{ needs.build.outputs.artifact }}"
echo "changelog=${{ needs.build.outputs.changelog }}"

0 comments on commit 61b08d4

Please sign in to comment.