Update Formulas #2509
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: Update Formulas | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '20 */8 * * *' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Run Updaters | |
run: | | |
sudo apt install jq -y >> /dev/null | |
ls -lh | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
bash -c "$(cat ./updaters/v2raya.sh)" | |
bash -c "$(cat ./updaters/v2raya-unstable.sh)" | |
# pwsh -c ./updaters/v2raya-unstable.ps1 | |
pwsh -c ./updaters/v2raya-git.ps1 | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |