Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combined scheduled workflow for terraform module #6

Merged
merged 7 commits into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/feature-branch.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: |-
Features Branch (Pull Request) Workflow
Features Branch (Pull Request) Workflow of a Terraform Module
max-lobur marked this conversation as resolved.
Show resolved Hide resolved

### Usage

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-branch.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: |-
Main Branch Workflow
Main Branch Workflow of a Terraform Module

### Usage

Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: |-
Scheduled Workflows of a Terraform Module

### Usage

In your repo create __`.github/workflows/scheduled.yaml`__

```yaml
name: scheduled
on:
schedule:
- cron: "0 3 * * *"

permissions:
pull-requests: write
id-token: write
contents: write

jobs:
scheduled:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/scheduled.yml@main
```

on:
workflow_call:
inputs:
runs-on:
description: "Overrides job runs-on setting (json-encoded list)"
type: string
required: false
default: '["ubuntu-latest"]'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
context:
uses: cloudposse/github-actions-workflows/.github/workflows/scheduled-context.yml@main
with:
runs-on: ${{ inputs.runs-on }}

readme:
uses: cloudposse/github-actions-workflows/.github/workflows/scheduled-readme.yml@main
with:
runs-on: ${{ inputs.runs-on }}