forked from GitHubMirrors/silverbullet-icalendar
Use GITHUB_TOKEN for push in CI
Some checks failed
Build SilverBullet Plug / build (push) Failing after 27s
Some checks failed
Build SilverBullet Plug / build (push) Failing after 27s
This commit is contained in:
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
@@ -14,6 +14,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Setup Deno
|
- name: Setup Deno
|
||||||
uses: denoland/setup-deno@v2
|
uses: denoland/setup-deno@v2
|
||||||
@@ -23,9 +24,10 @@ jobs:
|
|||||||
- name: Build Plug
|
- name: Build Plug
|
||||||
run: |
|
run: |
|
||||||
deno task build -- --no-check
|
deno task build -- --no-check
|
||||||
ls -lh *.plug.js
|
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
@@ -34,11 +36,12 @@ jobs:
|
|||||||
echo "No changes to commit"
|
echo "No changes to commit"
|
||||||
else
|
else
|
||||||
git commit -m "Build and update icalendar.plug.js [skip ci]"
|
git commit -m "Build and update icalendar.plug.js [skip ci]"
|
||||||
git push
|
# Use the token for pushing to Gitea
|
||||||
|
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${{ github.server_url }}/${{ github.repository }}.git" HEAD:${{ github.ref_name }}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload Build Artifact
|
- name: Upload Build Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: icalendar-plug
|
name: icalendar-plug
|
||||||
path: "*.plug.js"
|
path: "*.plug.js"
|
||||||
Reference in New Issue
Block a user