Skip to content

Commit

Permalink
fix: branch-based.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monninger committed Nov 30, 2023
1 parent b623c00 commit bd3a3a6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
1 change: 1 addition & 0 deletions .github/actions/trigger-workflow/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ runs:
using: 'composite'
steps:

# for some reason this only works with gh-cli
- name: Trigger another workflow
run: |
echo ${{ inputs.token }} | gh auth login --with-token
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ jobs:
submodules: 'recursive'
token: ${{ secrets.CI_PAT }}

- name: Trigger test
uses: ./.github/actions/trigger-workflow
with:
workflowFileName: test.yml
token: ${{ secrets.CI_PAT }}

- name: Setup
uses: ./.github/actions/setup-linux-x86_64

Expand All @@ -51,6 +45,12 @@ jobs:
working-directory: ./m1
run: cargo check

- name: Trigger test
uses: ./.github/actions/trigger-workflow
with:
workflowFileName: test.yml
token: ${{ secrets.CI_PAT }}




6 changes: 1 addition & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Code Coverage

on:
workflow_run:
workflows: ["Cargo Check"]
types:
- completed
workflow_dispatch:

jobs:
coverage:
runs-on:
labels: movement-runner
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ name: Release
permissions: write-all

on:
# push:
# branches:
# - main
workflow_run:
workflows: ["Cargo Test"]
types:
- completed
workflow_dispatch:

jobs:

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
test:
runs-on:
labels: movement-runner
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:

- name: Checkout Repository
Expand All @@ -34,3 +34,9 @@ jobs:
sed -i 's/badge\/tests-[a-zA-Z]*/badge\/tests-Failing-red/g' README.md
fi
if: ${{ always() }}

- name: Trigger release
uses: ./.github/actions/trigger-workflow
with:
workflowFileName: release.yml
token: ${{ secrets.CI_PAT }}

0 comments on commit bd3a3a6

Please sign in to comment.