Skip to content

Commit

Permalink
Restrict update workflow to only making a commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandeange committed Nov 15, 2024
1 parent fabddfc commit 6d1c087
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/update_lexicons.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Update Lexicons

on:
# TODO: Automate lexicon update process
# schedule:
# - cron: '0 0 * * *'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -47,24 +46,8 @@ jobs:
if: steps.changed-files.outputs.files_changed == 'true'
run: ./gradlew clean apiDump :app:desktop:assemble --no-daemon --stacktrace

- uses: actions-ecosystem/action-get-latest-tag@v1
if: steps.changed-files.outputs.files_changed == 'true'
id: get-latest-tag

- uses: actions-ecosystem/action-bump-semver@v1
if: steps.changed-files.outputs.files_changed == 'true'
id: bump-semver
with:
current_version: ${{ steps.get-latest-tag.outputs.tag }}
level: patch

- name: Prepare Release Files
if: steps.changed-files.outputs.files_changed == 'true'
run: ./scripts/bump_version.sh ${{ steps.bump-semver.outputs.new_version }}

- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
if: steps.changed-files.outputs.files_changed == 'true'
with:
commit_message: "[${{ steps.bump-semver.outputs.new_version }}] Update lexicons from atproto"
tagging_message: "${{ steps.bump-semver.outputs.new_version }}"
commit_message: Update lexicons from atproto

0 comments on commit 6d1c087

Please sign in to comment.