Skip to content

Commit

Permalink
GitHub actions had issues installing yq, so
Browse files Browse the repository at this point in the history
changed the mode-file from yaml to txt to simplify the code a bit
  • Loading branch information
magnulei committed Oct 23, 2024
1 parent acec4ac commit 1e7f65c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ jobs:
with:
enable-cache: true

- name: Install yq
run: sudo apt-get update && sudo apt-get install -y yq

- name: Read deployment mode from YAML file
- name: Read deploy mode from text file
run: |
export MODE=$(cat deploy_mode.yaml | yq '.mode')
echo "mode=$MODE" >> $GITHUB_ENV
MODE=$(cat deploy_mode.txt)
echo "MODE=${MODE}" >> $GITHUB_ENV
- name: Print the deployment mode
run: echo "The deployment mode is ${{ env.mode }}"
Expand Down
1 change: 1 addition & 0 deletions deploy_mode.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
6 changes: 0 additions & 6 deletions deploy_mode.yaml

This file was deleted.

0 comments on commit 1e7f65c

Please sign in to comment.