Skip to content

Commit

Permalink
Create RepthonArabic.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerpq authored Oct 29, 2023
1 parent c547b93 commit ed5511b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/RepthonArabic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: RepthonArabic

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04

steps:
- name: checkout kaali-linux
uses: actions/checkout@main

- uses: styfle/cancel-workflow-action@0.9.0
name: "cancel duplicate workflow runs"
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: initialization RepthonArabic
continue-on-error: true
run: |
git config --global user.name ${{ secrets.GIT_NAME }}
git config --global user.email ${{ secrets.GIT_EMAIL }}
git config --global credential.helper store
echo "https://${{ secrets.GIT_NAME }}:${{ secrets.GIT_TOKEN }}@github.com" > ~/.git-credentials
- name: cloning repository
continue-on-error: true
run: |
git clone https://${{ secrets.GIT_NAME }}:${{ secrets.GIT_TOKEN }}@${{ secrets.BOT_REPO }} RepthonArabic
- name: running RepthonArabic server
timeout-minutes: 350
continue-on-error: true
run: |
cd RepthonArabic
docker build . -t RepthonArabic
docker run RepthonArabic
- name: loop RepthonArabic server
continue-on-error: true
run: |
git clone https://github.com/${GITHUB_REPOSITORY} loop
cd loop || exit 1
echo $(date -u +%T%P) >> loop.txt
git add loop.txt
git commit -m "RepthonArabic : Loop $(date -u +%D-%T%P)"
git push -q https://${{ secrets.GIT_TOKEN }}@github.com/${GITHUB_REPOSITORY} HEAD:RepthonArabic

0 comments on commit ed5511b

Please sign in to comment.