Skip to content

Commit

Permalink
Fixed minor error in actions.yml composite run with branching
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanger67 committed Jul 20, 2024
1 parent 4d33a92 commit b9dbf27
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ inputs:

runs:
using: 'composite'
# runs-on: ubuntu-latest
steps:
- name: Checkout the current repository content
uses: actions/checkout@v2
with:
# Fetch all commits since init
# If not present, the date for every single file will
# default to the most recent commit date since there's
# nothing to trace.
# Fetch all commits since init so we can trace each file's
# first commit timestamp. If not for this, the date for
# every single file will default to the most recent
# commit date since there's nothing to trace.
fetch-depth: 0

# Markdown generator is found in submodule
# Markdown generator is found in submodule + data submodule
submodules: "true"


Expand All @@ -44,16 +43,18 @@ runs:
cd .readme_updater
# Present for testing branch -- unused
git fetch origin testing2
git checkout testing2
# # Present for testing branch -- unused
# git fetch origin testing2
# git checkout testing2
# # Make sure current branch is the main live branch
# git fetch origin main
# git checkout main
# Make sure current branch is the main live branch
git fetch origin main
git checkout main
cd ../
- name: Ensure my-submissions directory exists
shell: bash
run: |
Expand All @@ -64,17 +65,6 @@ runs:
mkdir "my-submissions"
fi
cd .readme_updater
# Present for testing branch -- unused
git fetch origin testing2
git checkout testing2
# # Make sure current branch is the main live branch
# git fetch origin main
# git checkout main
cd ../
- name: Setup python 3.10
Expand All @@ -84,6 +74,7 @@ runs:
cache: "pip"



# Dependencies for the markdown generator
- name: Install python packages
shell: bash
Expand All @@ -92,6 +83,7 @@ runs:
pip install -r '.readme_updater/requirements.txt'
- name: Execute the markdown generation python script
shell: bash
# -n: ignores previous .pkl stores of the modified dates (regenerate all from scratch)
Expand All @@ -100,6 +92,8 @@ runs:
run: python '.readme_updater/main.py' -n -g -user ${{ inputs.username }}




# Note: exit 0 should be redundant since this action triggers on a modification meaning
# at least one file edit, but might as well keep it in case of future changes
#
Expand Down

0 comments on commit b9dbf27

Please sign in to comment.