Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 9 additions & 1 deletion .github/workflows/nightly-stack-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@ jobs:
name: Regenerate stacks and open PR if drifted
runs-on: ubuntu-latest
steps:
- name: Generate app token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout dev branch
uses: actions/checkout@v6
with:
ref: dev
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}

- name: Set up Python
uses: actions/setup-python@v6
Expand Down Expand Up @@ -60,7 +68,7 @@ jobs:
if: steps.drift.outputs.drifted == 'true'
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.app-token.outputs.token }}
signoff: true
delete-branch: true
commit-message: "chore(stacks): nightly regeneration from compose sources"
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/renovate-stack-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@ jobs:
if: github.actor == 'renovate[bot]' && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- name: Generate app token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout Renovate branch
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}

- name: Set up Python
uses: actions/setup-python@v6
Expand All @@ -33,5 +41,6 @@ jobs:
- name: Commit regenerated stacks when drift exists
uses: stefanzweifel/git-auto-commit-action@v7
with:
token: ${{ steps.app-token.outputs.token }}
commit_message: "chore(stacks): sync generated stacks for renovate update"
file_pattern: stacks/*.yml
Loading