Skip to content

Commit

Permalink
Merge branch 'main' of github.com:updatecli/releasepost-action
Browse files Browse the repository at this point in the history
  • Loading branch information
olblak committed Jan 14, 2025
2 parents 13f9573 + acd71e0 commit 42acffc
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/updatecli.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: updatecli

on:
workflow_dispatch:
push:
Expand All @@ -9,43 +8,35 @@ on:
schedule:
# Run once a day
- cron: '*/10 * * * *'

permissions:
contents: write
pull-requests: write

jobs:
updatecli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Setup updatecli"
uses: "updatecli/updatecli-action@v2"

uses: "updatecli/[email protected]"
- name: Set Node.js 20.x
uses: actions/[email protected]
with:
node-version: 20
cache: npm

cache: npm
- name: "Run updatecli in dryrun"
run: "updatecli compose diff"
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: tibdex/[email protected]
id: generate_token
if: github.ref == 'refs/heads/main'
with:
app_id: ${{ secrets.UPDATECLIBOT_APP_ID }}
private_key: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}

- name: "Run updatecli"
run: "updatecli compose apply"
env:
GITHUB_ACTOR: ${{ secrets.UPDATECLI_BOT_GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

0 comments on commit 42acffc

Please sign in to comment.