diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/ISSUE_TEMPLATE/bug_report.md | 45 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/bug_report.yml | 121 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/config.yml | 5 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/feature_request.md | 20 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/feature_request.yml | 48 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/open_issue.md | 8 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/open_issue.yml | 13 | ||||
-rw-r--r-- | .github/config.yml | 17 | ||||
-rw-r--r-- | .github/release.yml | 22 | ||||
-rw-r--r-- | .github/workflows/builds.yml (renamed from .github/workflows/ferdi-builds.yml) | 8 | ||||
-rw-r--r-- | .github/workflows/dependency-updates.yml | 18 | ||||
-rw-r--r-- | .github/workflows/twitter-together.yml | 26 |
12 files changed, 270 insertions, 81 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 020d6ff58..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | --- | ||
2 | name: Bug report | ||
3 | about: Create a report to help us improve | ||
4 | --- | ||
5 | <!-- | ||
6 | Please remember that if you are logging a bug for some service that has *stopped working*, please log the bug at https://github.com/getferdi/recipes/issues | ||
7 | Please remember to read the self-help documentation at https://github.com/getferdi/ferdi#troubleshooting-recipes-self-help - in case it helps you unblock yourself. | ||
8 | |||
9 | Please fill our form below, this way we can analyse and fix the problem as fast as possible. | ||
10 | |||
11 | Please keep in mind that any text inside "<!--" and "--\>" are comments from us and won't be visible in your bug report, so please don't put any text in them. | ||
12 | --> | ||
13 | **Bug description:** | ||
14 | <!-- Add a clear and concise description of what the bug is --> | ||
15 | |||
16 | **Steps to reproduce:** | ||
17 | <!-- Explain to us how we can reproduce your bug on our computer --> | ||
18 | |||
19 | 1. Go to '...' | ||
20 | 2. Click on '....' | ||
21 | 3. Scroll down to '....' | ||
22 | 4. See error | ||
23 | |||
24 | **Expected behavior** | ||
25 | <!-- If applicable, add a description of what you expected to happen. --> | ||
26 | |||
27 | **Screenshots** | ||
28 | <!-- If applicable, add screenshots to help explain your problem. --> | ||
29 | <!-- You can simply drag and drop any image file into the editor to add it to the report --> | ||
30 | |||
31 | **Environment:** | ||
32 | |||
33 | - Operating System: <!-- e.g. macOS Catalina, Windows 10, etc. --> | ||
34 | - Ferdi Version: <!-- e.g. 5.4.3 --> | ||
35 | - Server: <!-- e.g. Ferdi, Franz, Using without an account --> | ||
36 | |||
37 | - Debug information: | ||
38 | <!-- | ||
39 | Get your debug information via Ferdi "Help" menu ("Copy/Publish Debug Information") then | ||
40 | share a debug information file or your published link with us. | ||
41 | --> | ||
42 | |||
43 | <!-- Please consider supporting Ferdi! | ||
44 | 👉 https://github.com/sponsors/getferdi | ||
45 | 👉 https://opencollective.com/getferdi/donate --> | ||
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..207e3463a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml | |||
@@ -0,0 +1,121 @@ | |||
1 | name: Bug Report | ||
2 | description: Report an Ferdi bug | ||
3 | title: "[Bug]: " | ||
4 | labels: ["bug :beetle:"] | ||
5 | body: | ||
6 | - type: markdown | ||
7 | attributes: | ||
8 | value: | | ||
9 | 1. Please remember that if you are logging a bug for some service that has *stopped working*, please log the bug [here](https://github.com/getferdi/recipes/issues) | ||
10 | 2. Please remember to read the [self-help documentation](https://github.com/getferdi/ferdi#troubleshooting-recipes-self-help) - in case it helps you unblock yourself for issues related to old recipes. | ||
11 | 3. If you are requesting support for a new service in Ferdi, please log it [here](https://github.com/getferdi/recipes/issues) | ||
12 | 4. If none of the above pertain to your problem, please fill our form below, this way we can analyse and fix the problem as fast as possible. | ||
13 | 5. Please consider supporting Ferdi! | ||
14 | 👉 https://github.com/sponsors/getferdi | ||
15 | 👉 https://opencollective.com/getferdi/donate | ||
16 | - type: checkboxes | ||
17 | attributes: | ||
18 | label: Preflight Checklist | ||
19 | description: Please ensure you've completed all of the following. | ||
20 | options: | ||
21 | - label: I have read the [Contributing Guidelines](https://github.com/getferdi/ferdi/blob/develop/CONTRIBUTING.md) for this project. | ||
22 | required: true | ||
23 | - label: I agree to follow the [Code of Conduct](https://github.com/getferdi/ferdi/blob/develop/CODE_OF_CONDUCT.md) that this project adheres to. | ||
24 | required: true | ||
25 | - label: I have searched the [issue tracker](https://github.com/getferdi/ferdi/issues) for a feature request that matches the one I want to file, without success. | ||
26 | required: true | ||
27 | - type: input | ||
28 | attributes: | ||
29 | label: Ferdi Version | ||
30 | description: What version of Ferdi are you using? | ||
31 | placeholder: 5.6.3 | ||
32 | validations: | ||
33 | required: true | ||
34 | - type: dropdown | ||
35 | attributes: | ||
36 | label: What operating system are you using? | ||
37 | options: | ||
38 | - Windows | ||
39 | - macOS | ||
40 | - Ubuntu | ||
41 | - Other Linux | ||
42 | - Other (specify below) | ||
43 | validations: | ||
44 | required: true | ||
45 | - type: dropdown | ||
46 | attributes: | ||
47 | label: Server | ||
48 | options: | ||
49 | - Ferdi | ||
50 | - Franz | ||
51 | - Using without an account | ||
52 | - Other server (please specify in the steps to reproduce) | ||
53 | validations: | ||
54 | required: true | ||
55 | - type: input | ||
56 | attributes: | ||
57 | label: Operating System Version | ||
58 | description: What operating system version are you using? On Windows, click Start button > Settings > System > About. On macOS, click the Apple Menu > About This Mac. On Linux, inside a terminal session, use lsb_release or uname -a. | ||
59 | placeholder: "e.g. Windows 10 version 1909, macOS Catalina 10.15.7, or Ubuntu 20.04" | ||
60 | validations: | ||
61 | required: true | ||
62 | - type: dropdown | ||
63 | attributes: | ||
64 | label: What arch are you using? | ||
65 | options: | ||
66 | - x64 | ||
67 | - ia32 | ||
68 | - arm64 (including Apple Silicon) | ||
69 | - Other (specify below) | ||
70 | validations: | ||
71 | required: true | ||
72 | - type: input | ||
73 | attributes: | ||
74 | label: Last Known working version of Ferdi | ||
75 | description: What is the last version of Ferdi this worked in, if applicable? | ||
76 | placeholder: 5.6.3 | ||
77 | - type: input | ||
78 | attributes: | ||
79 | label: Git SHA and/or build date | ||
80 | description: In the latest versions of Ferdi, we now also expose the GIT SHA and the build date. IF you are running one such version, please include this information as well. | ||
81 | placeholder: 9b29f041 / Sun May 09 2021 12:35:48 GMT+0200 | ||
82 | - type: textarea | ||
83 | attributes: | ||
84 | label: Steps to reproduce | ||
85 | description: Explain to us how we can reproduce your bug on our computer | ||
86 | placeholder: | | ||
87 | 1. Go to '...' | ||
88 | 2. Click on '....' | ||
89 | 3. Scroll down to '....' | ||
90 | 4. See error | ||
91 | validations: | ||
92 | required: true | ||
93 | - type: textarea | ||
94 | attributes: | ||
95 | label: Expected Behavior | ||
96 | description: A clear and concise description of what you expected to happen. | ||
97 | validations: | ||
98 | required: true | ||
99 | - type: textarea | ||
100 | attributes: | ||
101 | label: Actual Behavior | ||
102 | description: A clear description of what actually happens. | ||
103 | validations: | ||
104 | required: true | ||
105 | - type: textarea | ||
106 | attributes: | ||
107 | label: Screenshots | ||
108 | description: If applicable, add screenshots to help explain your problem. You can simply drag and drop any image file into the editor to add it to the report | ||
109 | - type: textarea | ||
110 | attributes: | ||
111 | label: Debug information | ||
112 | description: Get your debug information via Ferdi "Help" menu ("Copy/Publish Debug Information") then share a debug information file or your published link with us. | ||
113 | - type: input | ||
114 | attributes: | ||
115 | label: Testcase Gist URL | ||
116 | description: If you can reproduce the issue in a standalone test case, please use [Electron Fiddle](https://github.com/electron/fiddle) to create one and to publish it as a [GitHub gist](https://gist.github.com) and put the gist URL here. This is **the best way** to ensure this issue is triaged quickly **and** does not regress in the future. | ||
117 | placeholder: https://gist.github.com/... | ||
118 | - type: textarea | ||
119 | attributes: | ||
120 | label: Additional Information | ||
121 | description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here. | ||
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..99cc88f24 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml | |||
@@ -0,0 +1,5 @@ | |||
1 | # blank_issues_enabled: false | ||
2 | contact_links: | ||
3 | - name: Ferdi Community Support | ||
4 | url: https://getferdi.com/faq/ | ||
5 | about: Please see some basic questions here. If your question is not answered, please continue with raising an issue in github. | ||
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 61353797c..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | --- | ||
2 | name: Feature request | ||
3 | about: Suggest an idea for this project | ||
4 | --- | ||
5 | |||
6 | **Is your feature request related to a problem? Please describe.** | ||
7 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
8 | |||
9 | **Describe the solution you'd like** | ||
10 | A clear and concise description of what you want to happen. | ||
11 | |||
12 | **Describe alternatives you've considered** | ||
13 | A clear and concise description of any alternative solutions or features you've considered. | ||
14 | |||
15 | **Additional context** | ||
16 | Add any other context or screenshots about the feature request here. | ||
17 | |||
18 | <!-- Please consider supporting Ferdi! | ||
19 | 👉 https://github.com/sponsors/getferdi | ||
20 | 👉 https://opencollective.com/getferdi/donate --> | ||
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 000000000..3e7e6d312 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml | |||
@@ -0,0 +1,48 @@ | |||
1 | name: Feature Request | ||
2 | description: Suggest an idea for Ferdi | ||
3 | title: "[Feature Request]: " | ||
4 | labels: ["enhancement :sparkles:"] | ||
5 | body: | ||
6 | - type: markdown | ||
7 | attributes: | ||
8 | value: | | ||
9 | 1. Please remember that if you are logging a bug for some service that has *stopped working*, please log the bug [here](https://github.com/getferdi/recipes/issues) | ||
10 | 2. If you are requesting support for a new service in Ferdi, please log it [here](https://github.com/getferdi/recipes/pulls) | ||
11 | 3. Please remember to read the [self-help documentation](https://github.com/getferdi/ferdi#troubleshooting-recipes-self-help) - in case it helps you unblock yourself for issues related to old recipes. | ||
12 | 4. Please fill our form below, this way we can analyse and fix the problem as fast as possible. | ||
13 | 5. Please consider supporting Ferdi! | ||
14 | 👉 https://github.com/sponsors/getferdi | ||
15 | 👉 https://opencollective.com/getferdi/donate | ||
16 | - type: checkboxes | ||
17 | attributes: | ||
18 | label: Preflight Checklist | ||
19 | description: Please ensure you've completed all of the following. | ||
20 | options: | ||
21 | - label: I have read the [Contributing Guidelines](https://github.com/getferdi/ferdi/blob/develop/CONTRIBUTING.md) for this project. | ||
22 | required: true | ||
23 | - label: I agree to follow the [Code of Conduct](https://github.com/getferdi/ferdi/blob/develop/CODE_OF_CONDUCT.md) that this project adheres to. | ||
24 | required: true | ||
25 | - label: I have searched the [issue tracker](https://github.com/getferdi/ferdi/issues) for a feature request that matches the one I want to file, without success. | ||
26 | required: true | ||
27 | - type: textarea | ||
28 | attributes: | ||
29 | label: Problem Description | ||
30 | description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
31 | validations: | ||
32 | required: true | ||
33 | - type: textarea | ||
34 | attributes: | ||
35 | label: Proposed Solution | ||
36 | description: A clear and concise description of what you want to happen. | ||
37 | validations: | ||
38 | required: true | ||
39 | - type: textarea | ||
40 | attributes: | ||
41 | label: Alternatives Considered | ||
42 | description: A clear and concise description of any alternative solutions or features you've considered. | ||
43 | validations: | ||
44 | required: true | ||
45 | - type: textarea | ||
46 | attributes: | ||
47 | label: Additional Information | ||
48 | description: Add any other context or screenshots about the feature request here. | ||
diff --git a/.github/ISSUE_TEMPLATE/open_issue.md b/.github/ISSUE_TEMPLATE/open_issue.md deleted file mode 100644 index c7c279643..000000000 --- a/.github/ISSUE_TEMPLATE/open_issue.md +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | --- | ||
2 | name: Open issue | ||
3 | about: For everything that's neither a feature request, nor a bug | ||
4 | --- | ||
5 | |||
6 | <!-- Please consider supporting Ferdi! | ||
7 | 👉 https://github.com/sponsors/getferdi | ||
8 | 👉 https://opencollective.com/getferdi/donate --> | ||
diff --git a/.github/ISSUE_TEMPLATE/open_issue.yml b/.github/ISSUE_TEMPLATE/open_issue.yml new file mode 100644 index 000000000..a7771be59 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/open_issue.yml | |||
@@ -0,0 +1,13 @@ | |||
1 | name: Open issue | ||
2 | description: For everything that's neither a feature request, nor a bug | ||
3 | body: | ||
4 | - type: markdown | ||
5 | attributes: | ||
6 | value: | | ||
7 | 1. Please remember that if you are logging a bug for some service that has *stopped working*, please log the bug [here](https://github.com/getferdi/recipes/issues) | ||
8 | 2. If you are requesting support for a new service in Ferdi, please log it [here](https://github.com/getferdi/recipes/pulls) | ||
9 | 3. Please remember to read the [self-help documentation](https://github.com/getferdi/ferdi#troubleshooting-recipes-self-help) - in case it helps you unblock yourself for issues related to old recipes. | ||
10 | 4. Please fill our form below, this way we can analyse and fix the problem as fast as possible. | ||
11 | 5. Please consider supporting Ferdi! | ||
12 | 👉 https://github.com/sponsors/getferdi | ||
13 | 👉 https://opencollective.com/getferdi/donate | ||
diff --git a/.github/config.yml b/.github/config.yml new file mode 100644 index 000000000..237e3f570 --- /dev/null +++ b/.github/config.yml | |||
@@ -0,0 +1,17 @@ | |||
1 | # Comment to be posted to on PRs from first time contributors in your repository | ||
2 | newPRWelcomeComment: | | ||
3 | 💖 Thanks for opening this pull request! 💖 | ||
4 | |||
5 | Things that will help get your PR across the finish line: | ||
6 | |||
7 | - Follow the JavaScript [coding style](https://github.com/electron/electron/blob/master/docs/development/coding-style.md) as recommended by the Electron project. | ||
8 | - Run `npm run lint` locally to catch formatting errors earlier. | ||
9 | - Document any user-facing changes you've made by including screenshots and animated GIFs whenever possible. | ||
10 | |||
11 | We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. | ||
12 | |||
13 | # Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge | ||
14 | |||
15 | # Comment to be posted to on pull requests merged by a first time user | ||
16 | firstPRMergeComment: > | ||
17 | Congrats on merging your first pull request! 🎉🎉🎉 | ||
diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..6d8b15d02 --- /dev/null +++ b/.github/release.yml | |||
@@ -0,0 +1,22 @@ | |||
1 | changelog: | ||
2 | exclude: | ||
3 | labels: | ||
4 | - ignore-for-release | ||
5 | authors: | ||
6 | - FerdiBot | ||
7 | - allcontributors | ||
8 | categories: | ||
9 | - title: Breaking Changes 🛠 | ||
10 | labels: | ||
11 | - Semver-Major | ||
12 | - breaking-change | ||
13 | - title: Exciting New Features 🎉 | ||
14 | labels: | ||
15 | - Semver-Minor | ||
16 | - enhancement | ||
17 | - title: Bug Fixes 🐞 | ||
18 | labels: | ||
19 | - bug | ||
20 | - title: Other Changes | ||
21 | labels: | ||
22 | - "*" | ||
diff --git a/.github/workflows/ferdi-builds.yml b/.github/workflows/builds.yml index b15ba44a1..3f356e1e0 100644 --- a/.github/workflows/ferdi-builds.yml +++ b/.github/workflows/builds.yml | |||
@@ -10,7 +10,7 @@ | |||
10 | # 'WIN_CSC_LINK' (The HTTPS link or local path to certificate - for code signing of windows artifacts) | 10 | # 'WIN_CSC_LINK' (The HTTPS link or local path to certificate - for code signing of windows artifacts) |
11 | # 'WIN_CSC_KEY_PASSWORD' (The password to decrypt the certificate given in CSC_LINK - for code signing of windows artifacts) | 11 | # 'WIN_CSC_KEY_PASSWORD' (The password to decrypt the certificate given in CSC_LINK - for code signing of windows artifacts) |
12 | 12 | ||
13 | name: Ferdi Builds | 13 | name: Builds |
14 | 14 | ||
15 | on: | 15 | on: |
16 | # Push to any tracked branches | 16 | # Push to any tracked branches |
@@ -141,7 +141,7 @@ jobs: | |||
141 | - name: Install pnpm | 141 | - name: Install pnpm |
142 | uses: pnpm/action-setup@v2.0.1 | 142 | uses: pnpm/action-setup@v2.0.1 |
143 | with: | 143 | with: |
144 | version: 6.19.0 | 144 | version: 6.23.6 |
145 | - name: Install node dependencies | 145 | - name: Install node dependencies |
146 | run: npm i | 146 | run: npm i |
147 | - name: Package recipes | 147 | - name: Package recipes |
@@ -223,7 +223,7 @@ jobs: | |||
223 | - name: Install pnpm | 223 | - name: Install pnpm |
224 | uses: pnpm/action-setup@v2.0.1 | 224 | uses: pnpm/action-setup@v2.0.1 |
225 | with: | 225 | with: |
226 | version: 6.19.0 | 226 | version: 6.23.6 |
227 | - name: Install node dependencies | 227 | - name: Install node dependencies |
228 | run: npm i | 228 | run: npm i |
229 | - name: Figure out used package.json version | 229 | - name: Figure out used package.json version |
@@ -326,7 +326,7 @@ jobs: | |||
326 | - name: Install pnpm | 326 | - name: Install pnpm |
327 | uses: pnpm/action-setup@v2.0.1 | 327 | uses: pnpm/action-setup@v2.0.1 |
328 | with: | 328 | with: |
329 | version: 6.19.0 | 329 | version: 6.23.6 |
330 | - name: Install node dependencies | 330 | - name: Install node dependencies |
331 | run: npm i | 331 | run: npm i |
332 | shell: bash | 332 | shell: bash |
diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index 4f5e68332..7958aa5f5 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml | |||
@@ -1,6 +1,6 @@ | |||
1 | # This workflow will do a clean install of ferdi dev-dependencies, update the dependencies, build the source code and run tests. It will only run on scheduled trigger. | 1 | # This workflow will do a clean install of ferdi dev-dependencies, update the dependencies, build the source code and run tests. It will only run on scheduled trigger. |
2 | 2 | ||
3 | name: Ferdi Dependency updates | 3 | name: Dependency updates |
4 | 4 | ||
5 | on: | 5 | on: |
6 | # Manual trigger from the UI | 6 | # Manual trigger from the UI |
@@ -38,21 +38,31 @@ jobs: | |||
38 | - name: Install pnpm | 38 | - name: Install pnpm |
39 | uses: pnpm/action-setup@v2.0.1 | 39 | uses: pnpm/action-setup@v2.0.1 |
40 | with: | 40 | with: |
41 | version: 6.19.0 | 41 | version: 6.23.6 |
42 | - name: Install node dependencies | 42 | - name: Install node dependencies |
43 | run: npm i | 43 | run: npm i |
44 | - name: Update submodules | 44 | - name: Update submodules |
45 | run: npm run update-submodules | 45 | run: | |
46 | rm -rf ./recipes | ||
47 | npm run update-submodules | ||
48 | git add . | ||
49 | echo "GIT_DIRTY=$(git status -s | wc -l)" >> $GITHUB_ENV | ||
46 | - name: Update browserslist db | 50 | - name: Update browserslist db |
47 | run: npx browserslist@latest --update-db | 51 | run: | |
52 | npx browserslist@latest --update-db | ||
53 | git add . | ||
54 | echo "GIT_DIRTY=$(git status -s | wc -l)" >> $GITHUB_ENV | ||
48 | - name: Run linter, reformatter, rebrander and tests | 55 | - name: Run linter, reformatter, rebrander and tests |
56 | if: ${{ env.GIT_DIRTY != '0' }} | ||
49 | run: | | 57 | run: | |
50 | npm run prepare-code | 58 | npm run prepare-code |
51 | npm run test | 59 | npm run test |
52 | - name: Commit submodules, dependency-updates and linter changes | 60 | - name: Commit submodules, dependency-updates and linter changes |
61 | if: ${{ env.GIT_DIRTY != '0' }} | ||
53 | run: | | 62 | run: | |
54 | git config user.name github-actions | 63 | git config user.name github-actions |
55 | git config user.email github-actions@github.com | 64 | git config user.email github-actions@github.com |
56 | git commit -am "Update submodules, browserslist data updates and linter fixes [skip ci]" --no-verify || true | 65 | git commit -am "Update submodules, browserslist data updates and linter fixes [skip ci]" --no-verify || true |
57 | - name: Push all changes | 66 | - name: Push all changes |
67 | if: ${{ env.GIT_DIRTY != '0' }} | ||
58 | run: git push origin ${{ env.GIT_BRANCH_NAME }} --no-verify | 68 | run: git push origin ${{ env.GIT_BRANCH_NAME }} --no-verify |
diff --git a/.github/workflows/twitter-together.yml b/.github/workflows/twitter-together.yml new file mode 100644 index 000000000..5d552928a --- /dev/null +++ b/.github/workflows/twitter-together.yml | |||
@@ -0,0 +1,26 @@ | |||
1 | on: [push, pull_request] | ||
2 | name: Twitter, together! | ||
3 | jobs: | ||
4 | preview: | ||
5 | name: Preview | ||
6 | runs-on: ubuntu-latest | ||
7 | if: github.event_name == 'pull_request' | ||
8 | steps: | ||
9 | - uses: gr2m/twitter-together@v1.x | ||
10 | env: | ||
11 | GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
12 | tweet: | ||
13 | name: Tweet | ||
14 | runs-on: ubuntu-latest | ||
15 | if: github.event_name == 'push' && github.ref == 'refs/heads/develop' | ||
16 | steps: | ||
17 | - name: checkout develop | ||
18 | uses: actions/checkout@v2 | ||
19 | - name: Tweet | ||
20 | uses: gr2m/twitter-together@v1.x | ||
21 | env: | ||
22 | GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
23 | TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
24 | TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | ||
25 | TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }} | ||
26 | TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_API_SECRET_KEY }} | ||