Skip to content

Commit

Permalink
Merge pull request #2006 from Atralupus/ci/auto-find-release-branch
Browse files Browse the repository at this point in the history
[CI] Apply auto find options
  • Loading branch information
Atralupus authored Jul 10, 2023
2 parents 4ddf794 + 1614fa1 commit 95c50f1
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@ jobs:
fi
env:
WEB_FLOW_KEY_URL: https://github.com/web-flow.gpg
- name: Update other repos referring lib9c as submodules
uses: planetarium/submodule-updater@main
with:
token: ${{ secrets.SUBMODULE_UPDATER_GH_TOKEN }}
committer: >
Submodule Updater <engineering+submodule-updater@planetariumhq.com>
targets: |
${{ github.repository_owner }}/NineChronicles:rc-${{ github.ref_name }}?
${{ github.repository_owner }}/NineChronicles.Headless:rc-${{ github.ref_name }}?
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
Expand All @@ -121,7 +112,7 @@ jobs:
destination_dir: ${{ github.ref_name }}

update-submodule:
if: ${{ (github.ref_type == 'branch' && startsWith(github.ref_name, 'rc-v')) || github.ref_type == 'branch' && startsWith(github.ref_name, 'release/') }}
if: github.ref_type == 'branch' && startsWith(github.ref_name, 'release/')
runs-on: ubuntu-latest
steps:
- name: Update other repos referring lib9c as submodules
Expand All @@ -131,5 +122,5 @@ jobs:
committer: >
Submodule Updater <engineering+submodule-updater@planetariumhq.com>
targets: |
${{ github.repository_owner }}/NineChronicles:${{ github.ref_name }}?
${{ github.repository_owner }}/NineChronicles.Headless:${{ github.ref_name }}?
${{ github.repository_owner }}/NineChronicles:refs/heads/release/*
${{ github.repository_owner }}/NineChronicles.Headless:refs/heads/release/*

0 comments on commit 95c50f1

Please sign in to comment.