Skip to content

Commit d3b762b

Browse files
authored
chore(action): code cleanup [skip ci]
1 parent 87d6702 commit d3b762b

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,3 @@ jobs:
2323

2424
- name: Build the actions
2525
run: npm run build
26-
27-
- name: Test actions for simple action
28-
uses: ./
29-
with:
30-
project: github-workflow-sws
31-
env:
32-
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
33-
34-
- name: Test actions for monorepo
35-
uses: ./
36-
with:
37-
project: github-workflow-sws
38-
config: frontend/firebase.json
39-
env:
40-
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
41-
42-
- name: Test actions for with arguments
43-
uses: ./
44-
with:
45-
project: github-workflow-sws
46-
hosting: true
47-
env:
48-
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}

src/index.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,7 @@ const run = async () => {
3434
}`
3535
);
3636
} catch (error) {
37-
core.error(
38-
`An error occured while deploying to Firebase: ${error}. Retrying with debug mode enabled ...`
39-
);
40-
41-
try {
42-
await exec.exec(
43-
`firebase deploy -m ${process.env.GITHUB_SHA} ${
44-
config ? `--config ${config}` : ''
45-
} --project ${project} ${
46-
deployOnly !== '' ? ` --only ${deployOnly}` : ''
47-
} --debug`
48-
);
49-
} catch (error) {
50-
core.setFailed(`An error occured while deploying to Firebase: ${error}`);
51-
}
37+
core.error(`An error occured while deploying to Firebase: ${error}`);
5238
}
5339
};
5440

0 commit comments

Comments
 (0)