Skip to content

Commit 1db3266

Browse files
authored
Added scheduled workflow (#45)
* Added scheduled workflow * Get repos list * Added workflow
1 parent a61dc7e commit 1db3266

File tree

7 files changed

+83
-0
lines changed

7 files changed

+83
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Shared terraform scheduled"
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
runs-on:
7+
description: "Overrides job runs-on setting (json-encoded list)"
8+
type: string
9+
required: false
10+
default: '["ubuntu-latest"]'
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: false
15+
16+
jobs:
17+
readme:
18+
uses: cloudposse-github-actions-components/.github/.github/workflows/shared-readme.yml@main
19+
with:
20+
runs-on: ${{ inputs.runs-on }}
21+
pr_labels: |
22+
auto-update
23+
readme
24+
no-release
25+
secrets: inherit
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## what
2+
- Update workflows (`.github/workflows/`) to use `cloudposse-github-actions` org workflows
3+
4+
## why
5+
- Part of migration GHA to `cloudposse-github-actions` org
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
cloudposse-github-actions/readme
2+
cloudposse-github-actions/create-branch-from-tag
3+
cloudposse-github-actions/screengrab
4+
cloudposse-github-actions/composite-template
5+
cloudposse-github-actions/screenshot
6+
cloudposse-github-actions/string-transformer
7+
cloudposse-github-actions/pr-comment-on-release
8+
cloudposse-github-actions/test-action
9+
cloudposse-github-actions/typescript-template
10+
cloudposse-github-actions/get-pr
11+
cloudposse-github-actions/install-gh-releases
12+
cloudposse-github-actions/security
13+
cloudposse-github-actions/test
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
gh repo list cloudposse-github-actions --limit 500 --json name,owner \
3+
--jq '.[] | select(.name | test("^.github") | not) | .owner.login + "/" + .name' > repos.txt
4+
5+
split -d -l 16 repos.txt repos-
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
cloudposse-github-actions/readme
2+
cloudposse-github-actions/create-branch-from-tag
3+
cloudposse-github-actions/screengrab
4+
cloudposse-github-actions/composite-template
5+
cloudposse-github-actions/screenshot
6+
cloudposse-github-actions/string-transformer
7+
cloudposse-github-actions/pr-comment-on-release
8+
cloudposse-github-actions/test-action
9+
cloudposse-github-actions/typescript-template
10+
cloudposse-github-actions/get-pr
11+
cloudposse-github-actions/install-gh-releases
12+
cloudposse-github-actions/security
13+
cloudposse-github-actions/test
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
title "Adde scheduled workflow"
2+
3+
install .github/workflows/scheduled.yml
4+
5+
# Merge the PR
6+
auto_merge
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: scheduled
3+
on:
4+
workflow_dispatch: { } # Allows manually trigger this workflow
5+
schedule:
6+
- cron: "0 3 * * *"
7+
8+
permissions:
9+
pull-requests: write
10+
id-token: write
11+
contents: write
12+
13+
jobs:
14+
scheduled:
15+
uses: cloudposse-github-actions/.github/.github/workflows/shared-scheduled.yml@main
16+
secrets: inherit

0 commit comments

Comments
 (0)