Skip to content

Commit

Permalink
chore: Use GitHub Action Workflows from cloudposse/.github Repo (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman authored May 8, 2024
1 parent c4987d2 commit a594eb6
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 156 deletions.
54 changes: 0 additions & 54 deletions .github/configs/draft-release.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Upstream changes from _extends are only recognized when modifications are made to this file in the default branch.
_extends: .github
repository:
name: github-action-atmos-terraform-plan
description: Atmos Terraform Plan
homepage: https://cloudposse.com/accelerate
topics: ""
75 changes: 0 additions & 75 deletions .github/workflows/auto-readme.yml

This file was deleted.

26 changes: 15 additions & 11 deletions .github/workflows/feature-branch.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
name: Feature branch
---
name: feature-branch
on:
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened]
branches:
- main
- release/**
types: [opened, synchronize, reopened, labeled, unlabeled]

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

jobs:
perform:
uses: cloudposse/github-actions-workflows-github-action-composite/.github/workflows/feature-branch.yml@main
with:
organization: "${{ github.event.repository.owner.login }}"
repository: "${{ github.event.repository.name }}"
ref: "${{ github.event.pull_request.head.ref }}"
secrets:
github-private-actions-pat: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}"
terraform-module:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/feature-branch.yml@main
secrets: inherit
16 changes: 0 additions & 16 deletions .github/workflows/main-branch.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: release-branch
on:
push:
branches:
- main
- release/v*
paths-ignore:
- '.github/**'
- 'docs/**'
- 'examples/**'
- 'test/**'
- 'README.md'

permissions: {}

jobs:
terraform-module:
uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-branch.yml@main
secrets: inherit
16 changes: 16 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: scheduled
on:
workflow_dispatch: { } # Allows manually trigger this workflow
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
secrets: inherit

0 comments on commit a594eb6

Please sign in to comment.