Compare commits
13 Commits
main
...
testing-ap
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ce8e46239 | ||
|
|
5cdf812539 | ||
|
|
22f44d0ec2 | ||
|
|
e87c0a480f | ||
|
|
59ba9bb815 | ||
|
|
35f3e694c6 | ||
|
|
d00cd300b3 | ||
|
|
44e9b72836 | ||
|
|
f008ed6efc | ||
|
|
a5ac428a36 | ||
|
|
999332b1ae | ||
|
|
ab67d08f53 | ||
|
|
21fb51b3eb |
42
.github/workflows/repopush.yml
vendored
42
.github/workflows/repopush.yml
vendored
@ -1,18 +1,32 @@
|
|||||||
# push contents of this repo to specified repo on github on commit
|
name: Pull changes and deploy API
|
||||||
name: push this repo to bundle repo
|
|
||||||
on: [push]
|
on: [push]
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
name: Build
|
||||||
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Executing remote command
|
||||||
- name: push to bundle repo
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
uses: ad-m/github-push-action@master
|
with:
|
||||||
with:
|
host: ${{ secrets.R_HOST }}
|
||||||
github_token: ${{ secrets.SM_ACCESS_TOKEN }}
|
username: ${{ secrets.P_USERNAME }}
|
||||||
branch: master
|
password: ${{ secrets.P_PASSWORD }}
|
||||||
force: true
|
port: ${{ secrets.SSH_PORT }}
|
||||||
directory: .
|
script: |
|
||||||
repository: ranchimall/dappbundle
|
if [ -d "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle" ]; then
|
||||||
|
echo "Folder exists. Skipping Git clone."
|
||||||
|
else
|
||||||
|
echo "Folder does not exist. Cloning repository..."
|
||||||
|
cd ${{ secrets.DEPLOYMENT_LOCATION}}/ && git clone https://github.com/ranchimall/dappbundle.git
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}" ]; then
|
||||||
|
echo "Repository exists. Remove folder "
|
||||||
|
rm -r "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Cloning repository..."
|
||||||
|
cd ${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle && git clone https://github.com/ranchimall/${{ github.event.repository.name }}
|
||||||
|
|
||||||
|
cd "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}" && rm -r .gitattributes
|
||||||
|
cd ${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/ && git add . && git commit -m "Workflow updating files of ${{ github.event.repository.name }}" && git push "https://ranchimalldev:${{ secrets.RM_ACCESS_TOKEN }}@github.com/ranchimall/dappbundle.git"
|
||||||
Loading…
Reference in New Issue
Block a user