Skip to content

Runs the source operations toolkit to run an auto-update source operation on a Platform.sh project.

Notifications You must be signed in to change notification settings

platformsh/gha-run-sourceops-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Runs Source Operation Toolkit Auto Update

GitHub action that runs the source operations toolkit to run an auto-update source operation.

Inputs

  • github-token - Github personal access token with access rights to the target repository so we can work with the github api. REQUIRED.
  • platformsh_token - A Platform.sh API Token. REQUIRED
  • update_branch_name - The branch name the toolkit should target for running the update. Optional. Defaults to '' which causes the toolkit to use the default branch name of update

Example usage:

See Run source ops step below

name: Trigger Source Operations on a Schedule
on:
  schedule:
    # Run at 00:15 every day
    - cron: '15 0 * * *'
  workflow_dispatch:

jobs:
  run-sourceops:
    name: run-sourceops
      steps:
        - name: 'Run source ops'
          id: run-source-op
          uses: platformsh/gha-run-sourceops-update@main
          with:
            github_token: ${{ secrets.TEMPLATES_GITHUB_TOKEN }}
            platformsh_token: ${{ secrets.TEMPLATES_CLI_TOKEN }}

About

Runs the source operations toolkit to run an auto-update source operation on a Platform.sh project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published