Skip to content

Commit

Permalink
GH actions fixes (#341)
Browse files Browse the repository at this point in the history
* Some minor gh actions fixes

* Inherit secrets
  • Loading branch information
l0kix2 authored Sep 12, 2024
1 parent f6b8a53 commit c037d1f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main_test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and test
name: Test main branch

on:
push:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ jobs:
release:
name: Run release
uses: ./.github/workflows/subflow_release.yaml
secrets: inherit
with:
release_version: ${GITHUB_REF#refs/*/release/}
3 changes: 2 additions & 1 deletion .github/workflows/release_nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and test
name: Build nightly release

on:
workflow_dispatch:
Expand All @@ -10,6 +10,7 @@ jobs:
release:
name: Run release
uses: ./.github/workflows/subflow_release.yaml
secrets: inherit
with:
release_version: 0.0.$(git rev-list --count HEAD)-dev-${GITHUB_SHA}
release_suffix: "-nightly"
5 changes: 3 additions & 2 deletions .github/workflows/subflow_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ jobs:
disable_web_page_preview: true
format: markdown
message: |
Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}. Commit:
Workflow *${{github.workflow}}* failed: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}.
Commit: ${{github.event.head_commit.sha}}
Message:
```
${{github.event.head_commit.message}}
```

0 comments on commit c037d1f

Please sign in to comment.