Skip to content

Manual workflow for updating the repo #34

Manual workflow for updating the repo

Manual workflow for updating the repo #34

Workflow file for this run

name: Manual workflow for updating the repo
on:
workflow_dispatch:
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: synchronize
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
helm plugin install https://github.com/halkeye/helm-repo-html
./sync-charts.sh
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GRAY_HILL_0C33EFA03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/repo" # App source code path
###### End of Repository/Build Configurations ######
- name: Commit and push changes
run: |
git config --global user.name 'Auto commit'
git config --global user.email 'action@highcanfly.club'
git add repo charts
git diff --quiet && git diff --staged --quiet || (git add -A ; git commit -m "Update repo and charts directories"; git push)