Skip to content

Commit e37c746

Browse files
workflow fix
1 parent e303a29 commit e37c746

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/sync-element-web.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,36 @@ jobs:
99
sync:
1010
runs-on: ubuntu-latest
1111
steps:
12-
# Step 1: Checkout repo
1312
- name: Checkout repo
1413
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 # ensures full history for commits
1516

16-
# Step 2: Get latest release tag from upstream
1717
- name: Get latest release info
1818
id: release
1919
run: |
2020
LATEST=$(curl -s https://api.github.com/repos/element-hq/element-web/releases/latest | jq -r '.tag_name')
2121
echo "tag=$LATEST" >> $GITHUB_OUTPUT
2222
echo "Latest release: $LATEST"
2323
24-
# Step 3: Download release
2524
- name: Download release tarball
2625
run: |
2726
curl -L https://github.com/element-hq/element-web/archive/refs/tags/${{ steps.release.outputs.tag }}.tar.gz \
2827
-o element-web.tar.gz
2928
tar -xzf element-web.tar.gz
3029
mv element-web-* upstream-release
3130
32-
# Step 4: Run custom script, output to stable folder
3331
- name: Run rename/move script
3432
run: |
3533
chmod +x ./scripts/rename.sh
3634
# Make sure the folder exists
3735
mkdir -p ./processed
3836
./scripts/rename.sh ./upstream-release ./processed
3937
40-
# Step 5: Sync processed files into repo root safely
4138
- name: Sync processed files
4239
run: |
4340
rsync -a --delete --exclude='.github' --exclude='scripts' ./processed/ ./
4441
45-
# Step 6: Commit and push changes
4642
- name: Commit and push
4743
run: |
4844
git config user.name "github-actions"
@@ -51,7 +47,6 @@ jobs:
5147
git commit -m "Update to ${{ steps.release.outputs.tag }}" || echo "No changes to commit"
5248
git push origin main
5349
54-
# Step 7: Notify via issue
5550
- name: Notify via GitHub issue
5651
uses: peter-evans/create-issue-from-file@v5
5752
with:

0 commit comments

Comments
 (0)