Skip to content

Commit 8911518

Browse files
authored
Fix PR automation, update the action version in the example (#54)
* Update tag in the example * Remove package from the PR automations
1 parent a34a946 commit 8911518

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,3 @@ jobs:
1919
run: npm install
2020
- name: Run linter
2121
run: npm run lint
22-
package:
23-
name: Package distribution files
24-
runs-on: ubuntu-latest
25-
needs:
26-
- lint-code
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v2
30-
with:
31-
ref: ${{ github.head_ref }}
32-
- name: Cache dependencies
33-
uses: actions/cache@v2
34-
with:
35-
path: '**/node_modules'
36-
key: ec2-github-runner-${{ hashFiles('**/package-lock.json') }}
37-
- name: Install packages
38-
run: npm install
39-
- name: Package
40-
run: npm run package
41-
- name: Commit
42-
run: |
43-
git config --global user.name "GitHub Actions"
44-
git add dist/
45-
git commit -m "Update dist" || echo "No changes to commit"
46-
git push origin ${{ github.head_ref }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ jobs:
235235
aws-region: ${{ secrets.AWS_REGION }}
236236
- name: Start EC2 runner
237237
id: start-ec2-runner
238-
uses: machulav/ec2-github-runner@v2.2.0
238+
uses: machulav/ec2-github-runner@v2
239239
with:
240240
mode: start
241241
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
@@ -271,7 +271,7 @@ jobs:
271271
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
272272
aws-region: ${{ secrets.AWS_REGION }}
273273
- name: Stop EC2 runner
274-
uses: machulav/ec2-github-runner@v2.2.0
274+
uses: machulav/ec2-github-runner@v2
275275
with:
276276
mode: stop
277277
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)