Skip to content

Commit

Permalink
chore(ci): remove unnecessary branch, fix Set vars step (#144)
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Korolev <[email protected]>
  • Loading branch information
universal-itengineer authored Jun 20, 2024
1 parent 4905687 commit f365f86
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [main, pre-alpha, chore/ci/fix-build]
branch: [main, pre-alpha]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}

- name: Set vars
id: modules_module_tag
run: |
if [[ "${{ github.ref_name }}" == 'pre-alpha' || "${{ github.ref_name }}" == 'main' ]]; then
MODULES_MODULE_TAG="${{ github.ref_name }}"
branch="${{ matrix.branch }}"
if [[ "$branch" == 'pre-alpha' || "$branch" == 'main' ]]; then
MODULES_MODULE_TAG="$branch"
else
MODULES_MODULE_TAG="pr${{ github.event.pull_request.number }}"
fi
echo "MODULES_MODULE_TAG=$MODULES_MODULE_TAG" >> "$GITHUB_ENV"
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}

- name: Remove unwanted software
uses: ./.github/actions/remove-unwanted-software

Expand Down

0 comments on commit f365f86

Please sign in to comment.