summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/create-prerelease-on-tag.yml2
-rw-r--r--.github/workflows/publish-firefox-development.yml6
2 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/create-prerelease-on-tag.yml b/.github/workflows/create-prerelease-on-tag.yml
index 3d749c58..06cb8c7e 100644
--- a/.github/workflows/create-prerelease-on-tag.yml
+++ b/.github/workflows/create-prerelease-on-tag.yml
@@ -25,6 +25,7 @@ jobs:
shell: bash
- name: Release
+ id: release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v0.1.15
with:
generate_release_notes: true
@@ -44,3 +45,4 @@ jobs:
workflow: publish-firefox-development
token: ${{ secrets.GITHUB_TOKEN }}
wait-for-completion: false
+ inputs: '{ "upload_url": "${{ steps.release.outputs.upload_url }}" }'
diff --git a/.github/workflows/publish-firefox-development.yml b/.github/workflows/publish-firefox-development.yml
index 6ce61dc5..2877a692 100644
--- a/.github/workflows/publish-firefox-development.yml
+++ b/.github/workflows/publish-firefox-development.yml
@@ -5,6 +5,10 @@
name: publish-firefox-development
on:
workflow_dispatch:
+ inputs:
+ upload_url:
+ description: "The upload_url from the release created by create-prerelease-on-tag.yml"
+ required: true
permissions:
contents: read
jobs:
@@ -44,7 +48,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
- upload_url: ${{ github.event.release.upload_url }}
+ upload_url: ${{ inputs.upload_url }}
asset_path: yomitan-firefox.xpi
asset_name: yomitan-firefox.xpi
asset_content_type: application/x-xpinstall