Skip to content

Update Module

Update Module #35609

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: "Update Module"
# Controls when the workflow will run
on:
schedule:
- cron: '30 * * * *'
push:
branches: [ main ]
workflow_dispatch:
jobs:
update-script:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
- name: Update module
run: . ./Update.ps1 -Verbose
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Commit files
# run: |
# git config --local user.email "noreply@goodworkaround.com"
# git config --local user.name "github-actions[bot]"
# git diff-index --quiet HEAD || git commit -m "Add changes" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v3