Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #68 from zsrtp/automerge
Browse files Browse the repository at this point in the history
Automerge Support
  • Loading branch information
Pheenoh authored Apr 7, 2024
2 parents 80bc9d9 + 8cc516d commit 7240d4e
Show file tree
Hide file tree
Showing 8 changed files with 262 additions and 117 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sync-users-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
permissions:
id-token: write
contents: read
on:
pull_request:
branches:
- main
paths:
- 'users.yaml'
jobs:
sync-users-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-2
- name: "Install dependencies"
run: pip3 install -r requirements.txt
- name: "Sync Users Check"
run: |
python manage-users.py --dry-run
22 changes: 22 additions & 0 deletions .github/workflows/sync-users.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches:
- main
jobs:
manage-users:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-2
- name: "Install dependencies"
run: pip3 install -r requirements.txt
- name: "Sync Users"
run: |
python manage-users.py
26 changes: 0 additions & 26 deletions .github/workflows/terraform-plan.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/terraform.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/tofu-plan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
permissions:
contents: write
id-token: write
on:
workflow_dispatch:
pull_request:
paths:
- 'backend.tf'
- 'ghidra-server.tf'
jobs:
tofu-plan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-2
- uses: opentofu/setup-opentofu@v1
with:
tofu_version: 1.6.2
- name: "Tofu Plan"
run: |
tofu init
tofu plan
Loading

0 comments on commit 7240d4e

Please sign in to comment.