Comments (8)
Thank you so much. Problem solved. I forgot that i have changed my github token for logging in in my new laptops android studio. That is why it was showing Bad Credentials.
from request-action.
Can you share your workflow file?
from request-action.
on:
workflow_dispatch:
inputs:
mail:
description: 'Customer Email'
required: true
name: "Hishabee E-commerce"
jobs:
build:
name: Hishabee E-commerce
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: flutter clean
- run: flutter pub get
- run: flutter pub run flutter_launcher_icons
- run: flutter build apk
- run: flutter build appbundle --release
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*"
tag: v3.0.${{ github.run_number }}
token: ${{ secrets.TOKEN }}
- name: Push to Releases aab
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/bundle/release/*"
tag: v2.0.${{ github.run_number }}
token: ${{ secrets.TOKEN }}
- uses: octokit/[email protected]
id: get_latest_release
with:
route: GET /repos/{owner}/{repo}/releases/latest
owner: Hishabee
repo: hishabee_ecommerce
env:
GITHUB_TOKEN: ******
- run: echo "${{ fromJson(steps.get_latest_release.outputs.data)['assets'][0]['browser_download_url'] }}"
There are also other actions, i hope this is enough to sort the problem @gr2m
from request-action.
any update? @gr2m
from request-action.
- name: Push to Releases aab uses: ncipollo/release-action@v1 with: artifacts: "build/app/outputs/bundle/release/*" tag: v2.0.${{ github.run_number }} token: ${{ secrets.TOKEN }}
Here you set token to secrets.TOKEN
- uses: octokit/[email protected] id: get_latest_release with: route: GET /repos/{owner}/{repo}/releases/latest owner: Hishabee repo: hishabee_ecommerce env: GITHUB_TOKEN: ******
What are you doing here?
Two more questions
- What type of token is
SECRETS.token
? - Is this workflow running in the
Hishabee/hishabee_ecommerce
repository?
from request-action.
- this token is a GitHub secret token. I am pushing the built aab file into the release bucket list of the repository.
- Yes, this workflow is running in HishaBee/hishabee_ecommerce.
I have been running these github actions for about 6+ months, and it was working fine. This action basically helps our customer to get their own ecommerce mobile app by providing their email, we provided 200+ website running this action. But suddenly the action octokit showing 401 error
from request-action.
- uses: octokit/[email protected]
id: get_latest_release
with:
route: GET /repos/{owner}/{repo}/releases/latest
owner: Hishabee
repo: hishabee_ecommerce
env:
GITHUB_TOKEN: ******
in here i am accesing the downloadable url which we will provide to our customer through email
from request-action.
It's most likely a problem with this line
GITHUB_TOKEN: ******
try to replace it with this
GITHUB_TOKEN: ${{ secrets.TOKEN }}
If you want to use a different token, then add the token to repository secrets and set it to that secret using the ${{ secrets.MY_TOKEN }}
syntax
from request-action.
Related Issues (20)
- Node.js 12 warnings HOT 1
- Cannot view repo details
- [DOCS]: handleError example does not handle errors HOT 1
- [BUG]: sensitive output (`actions/runners/registration-token`) can't be masked HOT 3
- [DOCS]: Example of required_status_checks on branch protection ON HOT 1
- [ASK]: What is GITHUB_TOKEN?? HOT 1
- "Resource not accessible by integration" HOT 2
- [BUG]: Deprecation of GitHub Actions save-state and set-output commands
- Request Dependency Updates for dcl-node-runtime and vm HOT 2
- > I see some repositories using `npm run build` HOT 1
- [MAINT]: Update runtime to Node 20 HOT 2
- [FEAT]: Support onprem github api calls HOT 3
- [BUG]: Attempting GET on a Github commit API fails HOT 5
- [FEAT]: Add fail_on_error option to suppress failing HOT 1
- How to call add Tag? HOT 1
- [BUG]: Does this action support check API HOT 1
- [DOCS]: Clarify how to set body inputs HOT 3
- [MAINT]: Node.js 16 deprecation warning HOT 2
- [BUG]: Proxy error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from request-action.