Skip to content

Assets

Assets #238

Workflow file for this run

name: Assets
on:
schedule:
- cron: "59 23 * * *"
workflow_dispatch:
jobs:
download-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ⚙️ Install bsdtar
run: |
sudo apt-get update
sudo apt-get install libarchive-tools
- name: ⤵️ Get Age binary
run: |
./.github/scripts/get-age-binary.sh
- name: Generate GitHub App Token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ vars.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: 🎯 Get version
run: |
BINARY_VERSION=$(./Devantler.AgeCLI/runtimes/linux-x64/native/age-keygen-linux-x64 --version)
echo "BINARY_VERSION=$BINARY_VERSION" >> $GITHUB_ENV
- name: ✍🏻 Create PR
uses: peter-evans/create-pull-request@v7
with:
commit-message: "feat: Update Age to ${{ env.BINARY_VERSION }}"
title: "feat: Update Age binary to ${{ env.BINARY_VERSION }}"
body: |
This PR updates the Age binary used by Devantler.AgeCLI to ${{ env.BINARY_VERSION }}.
branch: update-age-binary
delete-branch: true
labels: dependencies
reviewers: devantler
assignees: devantler
signoff: true
token: ${{ steps.generate-token.outputs.token }}
sign-commits: true