You've already forked library-registry
mirror of
https://github.com/arduino/library-registry.git
synced 2025-07-07 14:41:10 +03:00
Host index source file in repository
The index source file contains the normalized URL and the metadata that can't be derived from the library releases ("types" data and locked name) for each of the libraries in the Library Manager index. It's most appropriate to store it in the same repository as the submission list.
This commit is contained in:
25
.github/workflows/manage-prs.yml
vendored
25
.github/workflows/manage-prs.yml
vendored
@ -287,19 +287,20 @@ jobs:
|
|||||||
repo: ${{ github.event.repository.name }}
|
repo: ${{ github.event.repository.name }}
|
||||||
pull_number: ${{ github.event.pull_request.number }}${{ github.event.issue.number }}
|
pull_number: ${{ github.event.pull_request.number }}${{ github.event.issue.number }}
|
||||||
|
|
||||||
- name: Set environment variables
|
- name: Checkout index source branch
|
||||||
run: |
|
uses: actions/checkout@v2
|
||||||
echo "INDEX_ENTRY_FILE_PATH=${{ runner.temp }}/index-entry.txt" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Write index entry to file
|
|
||||||
run: |
|
|
||||||
echo "${{ needs.parse.outputs.index-entry }}" >> "${{ env.INDEX_ENTRY_FILE_PATH }}"
|
|
||||||
|
|
||||||
- name: Upload index entry file to workflow artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
with:
|
||||||
path: ${{ env.INDEX_ENTRY_FILE_PATH }}
|
ref: production
|
||||||
name: index-entry
|
|
||||||
|
- name: Add index source file entry for submissions
|
||||||
|
run: |
|
||||||
|
INDEX_SOURCE_FILE_PATH="${{ github.workspace }}/repositories.txt"
|
||||||
|
git config --global user.email "bot@arduino.cc"
|
||||||
|
git config --global user.name "ArduinoBot"
|
||||||
|
echo "${{ needs.parse.outputs.index-entry }}" >> "$INDEX_SOURCE_FILE_PATH"
|
||||||
|
git add --update "$INDEX_SOURCE_FILE_PATH"
|
||||||
|
echo -e "Add submission # ${{ github.event.pull_request.number }}${{ github.event.issue.number }}\n\n${{ github.event.repository.html_url }}/pull/${{ github.event.pull_request.number }}${{ github.event.issue.number }}" | git commit --file -
|
||||||
|
git push
|
||||||
|
|
||||||
request-review:
|
request-review:
|
||||||
needs:
|
needs:
|
||||||
|
Reference in New Issue
Block a user