Update .gitea/workflows/ci.yml
This commit is contained in:
@@ -17,8 +17,6 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: ${{ vars.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
image: ${{ vars.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
outputs:
|
outputs:
|
||||||
user_rows_file: /tmp/user_rows.txt
|
|
||||||
avatar_rows_file: /tmp/avatar_rows.txt
|
|
||||||
total_valid_entries: ${{ steps.generate_data.outputs.total_valid_entries }}
|
total_valid_entries: ${{ steps.generate_data.outputs.total_valid_entries }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
@@ -135,6 +133,14 @@ jobs:
|
|||||||
|
|
||||||
echo "total_valid_entries=$total_valid_entries" >> "$GITHUB_OUTPUT"
|
echo "total_valid_entries=$total_valid_entries" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Upload data files as artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: skin-data
|
||||||
|
path: |
|
||||||
|
/tmp/user_rows.txt
|
||||||
|
/tmp/avatar_rows.txt
|
||||||
|
|
||||||
update_and_push_readme:
|
update_and_push_readme:
|
||||||
name: Update README and Push Changes
|
name: Update README and Push Changes
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -147,6 +153,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.TOKEN }}
|
token: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
|
- name: Download skin data artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: skin-data
|
||||||
|
path: /tmp
|
||||||
|
|
||||||
- name: Update README with user skins
|
- name: Update README with user skins
|
||||||
run: |
|
run: |
|
||||||
user_rows_file="/tmp/user_rows.txt"
|
user_rows_file="/tmp/user_rows.txt"
|
||||||
@@ -215,4 +227,3 @@ jobs:
|
|||||||
git push origin HEAD:main || echo "No changes to push"
|
git push origin HEAD:main || echo "No changes to push"
|
||||||
else
|
else
|
||||||
git push origin HEAD:"${GITHUB_REF_NAME}" || echo "No changes to push"
|
git push origin HEAD:"${GITHUB_REF_NAME}" || echo "No changes to push"
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user