Skip to content

Commit

Permalink
using prebuilt action (#44)
Browse files Browse the repository at this point in the history
Conditional dispatch (#45)

* using prebuilt action

* update dispatch condition

* fixed equals sign
  • Loading branch information
organizedgrime committed Dec 3, 2024
1 parent 981efc0 commit e35c87b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dispatch_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,25 @@ on:
push:
branches:
- main
workflow_dispatch: {}

jobs:
check_version:
name: Check version
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.check_version.outputs.changed }}
version: ${{ steps.check_version.outputs.version }}
prev_version: ${{ steps.check_version.outputs.prev_version }}

steps:
- uses: actions/checkout@v4
- id: check_version
uses: radumarias/action-check-version-changed-rust@v1

dispatch:
needs: [check_version]
if: needs.check_version.outputs.changed == 'true'
runs-on: ubuntu-latest
steps:
- name: Dispatch update to Personal Website
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
env:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: true
CARGO_TERM_COLOR: always

jobs:
build:
Expand Down

0 comments on commit e35c87b

Please sign in to comment.