Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 12 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,21 @@
name: Run SSH command

name: Sync to lib_smsmms
on:
workflow_dispatch:
pull_request:
types:
- closed
issues:
types: [labeled]

jobs:
build:
sync_issue:
if: github.event.label.name == 'libsmsmms'
runs-on: ubuntu-latest
environment: production
steps:
- name: Run SSH command
uses: appleboy/ssh-action@master
timeout-minutes: 60
- name: Create issue in lib_smsmms_android
uses: actions-ecosystem/action-create-issue@v1
with:
command_timeout: "60m"
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
bash -s << 'EOF'
echo "Event: ${{ github.event_name }}"

# Handle merged pull requests
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
if [[ "${{ github.event.pull_request.merged }}" == "true" ]]; then
if [[ "${{ github.event.pull_request.base.ref }}" == "staging" ]]; then
cd /root/digitalocean_ci_cd_app_releases && ./start.sh
elif [[ "${{ github.event.pull_request.base.ref }}" == "master" ]]; then
cd /root/digitalocean_ci_cd_app_releases && ./start.sh cp && ./start.sh build
fi
else
echo "PR closed but not merged. Skipping."
exit 0
fi
fi
github_token: ${{ secrets.SYNC_TOKEN }}
repo: smswithoutborders/lib_smsmms_android
title: ${{ github.event.issue.title }}
body: |
${{ github.event.issue.body }}

# Handle label events
if [[ "${{ github.event_name }}" == "issues" ]]; then
echo "Label event detected. Running issues command."
cd /home/sherlock/issues_migrate/
./run.sh
fi
EOF
---
**Source:** ${{ github.event.issue.html_url }}
6 changes: 3 additions & 3 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
releaseVersion=0
stagingVersion=70
stagingVersion=71
nightlyVersion=0
versionName=0.70.0
tagVersion=84
versionName=0.71.0
tagVersion=86
Loading