Skip to content

Commit

Permalink
Add plugin directory as an output
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Aug 13, 2024
1 parent 88ff533 commit e3712b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ on:
tag:
description: "The release tag"
value: ${{ jobs.create_tag.outputs.revision }}
plugin_directory:
description: "The directory that the plugin has been cloned into"
value: ${{ jobs.plugin-build.outputs.plugin_directory }}

jobs:
josm-build:
Expand Down Expand Up @@ -79,6 +82,8 @@ jobs:
plugin-build:
runs-on: ${{ inputs.operating-system }}
needs: [josm-build, create_tag]
outputs:
plugin_directory: ${{ steps.version.outputs.plugin_directory }}
steps:
- uses: JOSM/JOSMPluginAction/actions/setup-ant@v2
with:
Expand All @@ -101,6 +106,7 @@ jobs:
version="$(git describe --tags --always --dirty --broken)"
fi
echo "version=${version#v}" >> $GITHUB_OUTPUT
echo "plugin_directory=josm/plugins/${{ github.event.repository.name }}" >> $GITHUB_OUTPUT
- name: Build with Ant
run: |
Expand Down

0 comments on commit e3712b8

Please sign in to comment.