Skip to content

Commit 4cee2d1

Browse files
authored
chore: fixed variable name for GitHub Actions token (#2051)
* Fix for token for Github actions repo_token is now incorrect and should be named as token. See - https://github.com/marketplace/actions/gh-release#-external-release-notes * Added Changeset * Updated comment. * Fixing formatting of examples in the CHANGELOG for the blocks package New workflow added at the same time the last PR was merged for blocks. * Fixed CHANGELOG file.
1 parent 1f8838c commit 4cee2d1

File tree

4 files changed

+40
-35
lines changed

4 files changed

+40
-35
lines changed

.changeset/fuzzy-glasses-fry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@faustwp/wordpress-plugin": patch
3+
---
4+
5+
Fixed the token variable name for Github actions

.github/actions/release-plugin/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@ runs:
5858
shell: bash
5959

6060
- id: upload-main-release-to-github
61-
name: Uploads the main release zip file to Github
61+
name: Uploads the main release zip file to GitHub
6262
uses: softprops/action-gh-release@v2
6363
with:
64-
repo_token: ${{ secrets.GITHUB_TOKEN }}
64+
token: ${{ secrets.GITHUB_TOKEN }}
6565
files: ${{ steps.zip.outputs.zip-path }}
6666
asset_name: faustwp-${{ env.VERSION }}.zip
6767
overwrite: true
6868

6969
- id: upload-org-release-to-github
70-
name: Uploads the non wpe-updater release zip file to Github
70+
name: Uploads the non wpe-updater release zip file to GitHub
7171
uses: softprops/action-gh-release@v2
7272
with:
73-
repo_token: ${{ secrets.GITHUB_TOKEN }}
73+
token: ${{ secrets.GITHUB_TOKEN }}
7474
files: ${{ steps.zip-org.outputs.zip-path }}
7575
asset_name: faustwp-${{ env.VERSION }}.org.zip
7676
overwrite: true

packages/block-editor-utils/CHANGELOG.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
// Component.js
2525

2626
Component.config = {
27-
name: 'CreateBlockBlockB',
28-
editorFields: {
29-
textArea: {
30-
type: 'string',
31-
label: 'My Message',
32-
location: 'editor',
33-
control: 'textarea', // <--- Render a TextAreaControl field in the Gutenberg editor
34-
},
35-
},
27+
name: 'CreateBlockBlockB',
28+
editorFields: {
29+
textArea: {
30+
type: 'string',
31+
label: 'My Message',
32+
location: 'editor',
33+
control: 'textarea', // <--- Render a TextAreaControl field in the Gutenberg editor
34+
},
35+
},
3636
};
3737
```
3838

@@ -66,9 +66,9 @@
6666

6767
```js
6868
<div
69-
style={styles}
70-
className="rich-text"
71-
dangerouslySetInnerHTML={{ __html: attributes.richText }}
69+
style={styles}
70+
className="rich-text"
71+
dangerouslySetInnerHTML={{ __html: attributes.richText }}
7272
/>
7373
```
7474

@@ -119,9 +119,9 @@
119119
import save from './save';
120120

121121
registerFaustBlock(MyFirstBlock, {
122-
blockJson: metadata,
123-
editFn: Edit,
124-
saveFn: save,
122+
blockJson: metadata,
123+
editFn: Edit,
124+
saveFn: save,
125125
});
126126
```
127127

packages/faustwp-core/CHANGELOG.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
export default function Sitemap() {}
2525

2626
export function getServerSideProps(ctx) {
27-
return getSitemapProps(ctx, {
28-
sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this
29-
frontendUrl: process.env.NEXT_PUBLIC_SITE_URL,
30-
sitemapPathsToIgnore: ['/wp-sitemap-users-*'],
31-
});
27+
return getSitemapProps(ctx, {
28+
sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this
29+
frontendUrl: process.env.NEXT_PUBLIC_SITE_URL,
30+
sitemapPathsToIgnore: ['/wp-sitemap-users-*'],
31+
});
3232
}
3333
```
3434

@@ -132,7 +132,7 @@
132132
133133
```jsx
134134
<ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}>
135-
Log Out
135+
Log Out
136136
</ToolbarItem>
137137
```
138138
@@ -238,18 +238,18 @@
238238
import { FaustPage } from '@faustwp/core';
239239

240240
type GetPageData = {
241-
generalSettings: {
242-
title: string;
243-
};
241+
generalSettings: {
242+
title: string;
243+
};
244244
};
245245

246246
type PageProps = {
247-
myProp: string;
247+
myProp: string;
248248
};
249249

250250
const Page: FaustPage<GetPageData, PageProps> = (props) => {
251-
const { myProp, data } = props;
252-
return <></>;
251+
const { myProp, data } = props;
252+
return <></>;
253253
};
254254
```
255255
@@ -318,9 +318,9 @@
318318
export default function Sitemap() {}
319319

320320
export function getServerSideProps(context) {
321-
return getSitemapProps(context, {
322-
frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var
323-
});
321+
return getSitemapProps(context, {
322+
frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var
323+
});
324324
}
325325
```
326326
@@ -350,7 +350,7 @@
350350
import { FaustHooks, FaustPlugin } from '@faustwp/core';
351351

352352
export class MyPlugin implements FaustPlugin {
353-
apply(hooks: FaustHooks) {}
353+
apply(hooks: FaustHooks) {}
354354
}
355355
```
356356

0 commit comments

Comments
 (0)