Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while initialized firebase #9

Closed
pavel-filimonov opened this issue Sep 9, 2022 · 5 comments
Closed

Error while initialized firebase #9

pavel-filimonov opened this issue Sep 9, 2022 · 5 comments

Comments

@pavel-filimonov
Copy link

I wan't to get data from realtime db, but i've got an error when I try to initialize my script:

jobs:
  PullBuildInfo:
    name: Pull build info
    runs-on: ubuntu-latest
    steps:
      - name: Pull latest version build info in realtime database
        uses: w9jds/firebase-trigger@master
        with:
          credentials: ${{ secrets.SOME_FIREBASE_TOKEN }}
          databaseUrl: https://[project_id].firebaseio.com
          path: some/path

My token is valid, because I'm using it from postman request

My error:

image

@pavel-filimonov pavel-filimonov changed the title Error via initialized firebase Error while initialized firebase Sep 9, 2022
@jjones-gtf
Copy link

@pavel-filimonov
Is your firebase token connected to a service account?
Is the token set in github secrets?
Did the service account expire? (not sure if that's possible)
Does the service account have the right permissions to access realtime db?

@pavel-filimonov
Copy link
Author

yeah, that's my fault, I connected the token to the service account. It works.

I've another question, how can I make a GET request to the db? I want to read data from db and then use it.
Or I can't do it with this action? Because if I don't specify value in action, it will be Date.now()

@jjones-gtf
Copy link

Currently there is no GET functionality. You could fork the repo and provide the wanted functionailty. You'd probably want to have it as an output and the pick up the response in the next step. I forked and made a pull request a couple days ago and no response yet.

@pavel-filimonov
Copy link
Author

I got it. Thank u for answers.
I'll follow for this project. But now I'll try to make this action by cUrl

@w9jds
Copy link
Owner

w9jds commented Sep 13, 2022

I'll take a look at the PR in a bit, glad you figured it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants