mirror of
https://github.com/milanmk/actions-file-deployer.git
synced 2026-06-29 11:12:46 +00:00
Compare commits
2 commits
3cf188f493
...
7dbe24eb86
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7dbe24eb86 |
||
|
|
f22fde9d8e |
1 changed files with 2 additions and 2 deletions
|
|
@ -302,10 +302,10 @@ runs:
|
||||||
git_previous_commit=${{github.event.before}}
|
git_previous_commit=${{github.event.before}}
|
||||||
elif [ "${{github.event_name}}" == "pull_request" ]; then
|
elif [ "${{github.event_name}}" == "pull_request" ]; then
|
||||||
git_previous_commit=${{github.event.pull_request.base.sha}}
|
git_previous_commit=${{github.event.pull_request.base.sha}}
|
||||||
elif [ "${{github.event_name}}" == "workflow_dispatch" ]; then
|
elif [ "${{github.event_name}}" == "workflow_dispatch" ] || [ "${{github.event_name}}" == "schedule" ]; then
|
||||||
git_previous_commit=$(git rev-parse ${{github.sha}}^)
|
git_previous_commit=$(git rev-parse ${{github.sha}}^)
|
||||||
else
|
else
|
||||||
echo "::error::Event not supported for delta synchronization: ${{github.event_name}}. Supported events are 'push', 'pull_request' and 'workflow_dispatch'."
|
echo "::error::Event not supported for delta synchronization: ${{github.event_name}}. Supported events are 'push', 'pull_request', 'workflow_dispatch' and 'schedule'."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue