mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Explicity set action for preview action input (#1542)
GitHub actions have changed behaviour subtly in that now setting the env is no longer sufficient for the following action to pick up automatically. Instead switch to being explicit.
This commit is contained in:
parent
442ef24e64
commit
8717eb6935
@ -49,9 +49,11 @@ jobs:
|
||||
|
||||
case $event_type in
|
||||
"labeled")
|
||||
echo "action set to deploy"
|
||||
echo "action=deploy" >> "$GITHUB_ENV"
|
||||
;;
|
||||
"closed")
|
||||
echo "action set to remove"
|
||||
echo "action=remove" >> "$GITHUB_ENV"
|
||||
;;
|
||||
*)
|
||||
@ -62,6 +64,7 @@ jobs:
|
||||
- name: Deploy preview
|
||||
uses: rossjrw/pr-preview-action@v1
|
||||
with:
|
||||
action: ${{ env.action }}
|
||||
source-dir: ./build/
|
||||
preview-branch: gh-pages
|
||||
umbrella-dir: pr-preview
|
||||
|
Loading…
Reference in New Issue
Block a user