Skip to content

Commit

Permalink
Fix build workflow example and create_entries script
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzschmid committed Dec 15, 2020
1 parent 7205dfc commit c1fd898
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions _tools/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions/setup-ruby@v1

- name: Ruby Cache
id: cache_ruby
uses: actions/cache@v2
with:
path: vendor/bundle
Expand All @@ -32,7 +33,7 @@ jobs:
${{ runner.os }}-gem-
- name: Install Bundler and Jekyll
if: steps.cache.outputs.cache-hit != 'true'
if: steps.cache_ruby.outputs.cache-hit != 'true'
run: |
gem install bundler
bundle install --path vendor/bundle
Expand All @@ -57,6 +58,7 @@ jobs:
cd ../
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -71,10 +73,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# This pulls from the CREATE RELEASE step above, referencing it's ID
# to get its outputs object, which include a `upload_url`. See this
# blog post for more info:
# https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./website.zip
asset_name: website.zip
Expand Down
2 changes: 1 addition & 1 deletion _tools/create_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def parse_frab(file_path):
'file_content': 'bio'
},
'rooms': {
'folder_name': '_location',
'folder_name': '_rooms',
'file_name': 'name',
'file_vars': ['name'],
'file_content': 'description'
Expand Down
1 change: 1 addition & 0 deletions _tools/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
pip install pyyaml
- name: Parse schedule and generate files
# add argument --lc-time to create_entries.py to select language of weekday representation
run: |
source venv/bin/activate
python _tools/create_entries.py --frab schedule.json
Expand Down

0 comments on commit c1fd898

Please sign in to comment.