forked from GitHubMirrors/silverbullet-icalendar
Add contents:write permission to fix CI push
Some checks failed
Build SilverBullet Plug / build (push) Failing after 28s
Some checks failed
Build SilverBullet Plug / build (push) Failing after 28s
This commit is contained in:
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@@ -5,6 +5,9 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -14,7 +17,6 @@ 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
|
||||||
@@ -26,8 +28,6 @@ jobs:
|
|||||||
deno task build -- --no-check
|
deno task build -- --no-check
|
||||||
|
|
||||||
- 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"
|
||||||
@@ -36,12 +36,11 @@ 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]"
|
||||||
# Use the token for pushing to Gitea
|
git push origin main
|
||||||
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