Skip to content

Commit 339d1d2

Browse files
authored
Fix workflow issues (#128)
* Fix workflow issues * Add changelog * Add origin fetch
1 parent 79053ef commit 339d1d2

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/publish-gh-pages.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
run: cp test/support/index.html dist-app/
4040

4141
- name: Checkout gh-pages
42-
run: git checkout gh-pages
42+
run: |
43+
git fetch origin gh-pages
44+
git checkout gh-pages
4345
4446
- name: Add page to current directory
4547
run: mv dist-app/* .
@@ -48,7 +50,7 @@ jobs:
4850
run: git add restricted-input.js index.html
4951

5052
- name: Commit page
51-
run: git commit -ve -m "Update demo page for restricted-input v${{ env.latest_version }}"
53+
run: git commit -m "Update demo page for restricted-input v${{ env.latest_version }}"
5254

5355
- name: Push changes
5456
run: git push

.github/workflows/release-notes.yml

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
with:
1616
node-version-file: .nvmrc
1717

18+
- run: |
19+
git checkout main
20+
git pull
21+
1822
- name: Get version
1923
run: echo "latest_version=$(npm pkg get version --workspaces=false | tr -d \")" >> $GITHUB_ENV
2024

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Restricted Input - Changelog
22

3+
## unreleased
4+
5+
- Fix workflow errors
6+
37
## 4.1.3 (2025-02-25)
48

59
- Update workflows and scripts

0 commit comments

Comments
 (0)