Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkout individual state file to avoid recursion #50

Merged
merged 1 commit into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ inputs:
description: Output folder for HTML files
required: false
default: 'gh-pages'
state:
description: Output folder for state keeping
required: false
default: 'state'
redmine_api_key:
description: The Redmine API key
required: true
Expand Down Expand Up @@ -48,17 +52,20 @@ runs:
uses: actions/checkout@v4
with:
ref: ${{ inputs.folder }}
path: ${{ inputs.folder }}
fetch-depth: '1'
- run: rm -rf ${{ inputs.folder }}/.git
path: ${{ inputs.state }}
# https://github.com/actions/checkout#fetch-only-a-single-file
sparse-checkout: |
state.json
sparse-checkout-cone-mode: false
- run: rm -rf ${{ inputs.state }}/.git
shell: bash
- name: Render Markdown from configured backlog queries
run: |
python backlogger/backlogger.py ${{ inputs.config }} ${{ inputs.args }}
echo "BACKLOG_STATUS=$?" >> "$GITHUB_ENV"
env:
REDMINE_API_KEY: ${{ inputs.REDMINE_API_KEY }}
STATE_FOLDER: ${{ inputs.folder }}
STATE_FOLDER: ${{ inputs.state }}
WEBHOOK_URL: ${{ inputs.webhook_url }}
shell: bash
continue-on-error: true
Expand Down