Skip to content

Commit

Permalink
Merge pull request #199 from boozook/ci/post
Browse files Browse the repository at this point in the history
CI: update deps, add bump sys version to update workflow
  • Loading branch information
boozook authored Feb 9, 2024
2 parents c05c453 + 2937eaa commit 0e571c7
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 10 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ name: Post
on:
release:
types: [published]
workflow_dispatch:
inputs:
crate:
type: string
description: "Name of published crate"
required: false
version:
type: string
description: "Version of published crate."
required: false
message:
description: "Just message to post."
required: false
jobs:
post:
name: Post
Expand All @@ -15,20 +28,18 @@ jobs:
- name: Toot
id: mastodon
uses: cbrgm/mastodon-github-action@v1
uses: cbrgm/mastodon-github-action@v2.0.1
with:
message: |
🦀 Rusty Playdate Updated
New release happens!
🦀 Rusty Playdate Updated!
${{ steps.url.outputs.value }}
#rust #rustdev #playdate
# TODO: Write good-look link like [github.event.repository.name](url)

language: "en"
visibility: "public" # use `unlisted` for tests
env:
MASTODON_URL: ${{ secrets.MASTODON_URL }}
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
url: ${{ secrets.MASTODON_URL }}
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
45 changes: 42 additions & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,49 @@ jobs:
echo "Pushed: ${{ steps.commit.outputs.pushed }}"
echo "SHA: ${{ steps.commit.outputs.commit_sha }}"
pr:
bump:
name: Make PR
needs: [new-branch, pre-gen, pre-gen-arm]
runs-on: ubuntu-latest
defaults:
run:
shell: bash
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.new-branch.outputs.working }}

- name: Bump Version
uses: tj-actions/[email protected]
with:
release_type: patch
working-directory: ./api/sys

- name: Commit
id: commit
uses: EndBug/[email protected]
with:
add: ./api/sys/Cargo.toml
author_name: Alex Koz
author_email: [email protected]
committer_name: Bump sys version
message: Automated bump sys crate version
pull: "--rebase --autostash"
push: true

- name: Committed
run: |
echo "Committed: ${{ steps.commit.outputs.committed }}"
echo "Pushed: ${{ steps.commit.outputs.pushed }}"
echo "SHA: ${{ steps.commit.outputs.commit_sha }}"
pr:
name: Make PR
needs: [new-branch, pre-gen, pre-gen-arm, bump]
runs-on: ubuntu-latest
defaults:
run:
shell: bash
Expand All @@ -305,8 +344,8 @@ jobs:
TO_BRANCH: ${{ needs.new-branch.outputs.base || github.event.repository.default_branch }}
PULL_REQUEST_TITLE: Update pre-built bindings
PULL_REQUEST_BODY: |
Pre-built bindings just updated.
Don't forget to bump version and make release.
- [x] Pre-built bindings just updated.
- [ ] Bump sys crate
PULL_REQUEST_IS_DRAFT: false
CONTENT_COMPARISON: true
REVIEWERS: '["boozook"]'

0 comments on commit 0e571c7

Please sign in to comment.