Create RepthonArabic.yml #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |