Skip to content

Commit

Permalink
Merge pull request #8 from saagie/fix_github_secret
Browse files Browse the repository at this point in the history
Fix GitHub secret
  • Loading branch information
PierreLeresteux authored Dec 27, 2019
2 parents b0569ea + 31c9d0b commit 9b1ed41
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildAllJobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET }}
with:
tag_name: ${{ steps.extract_version.outputs.v }}
release_name: Release ${{ steps.extract_version.outputs.v }}
Expand All @@ -39,7 +39,7 @@ jobs:
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./tmp-zip/certified.zip
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/buildOnlyModified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_SECRET}}
branch: ${{ steps.extract_branch.outputs.branch }}
- name: extract version
id: extract_version
Expand All @@ -56,7 +56,7 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET}}
with:
tag_name: ${{ steps.extract_version.outputs.v }}
release_name: Release ${{ steps.extract_version.outputs.v }}
Expand All @@ -66,7 +66,7 @@ jobs:
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET}}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./tmp-zip/certified.zip
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: delete_prerelease
uses: actions/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
github-token: ${{secrets.GITHUB_SECRET}}
script: |
const result = await github.repos.listReleases(context.repo);
result.data
Expand All @@ -40,7 +40,7 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action Bot"
remote_repo="https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
remote_repo="https://${{ github.actor }}:${{ secrets.GITHUB_SECRET }}@github.com/${{ github.repository }}.git"
git push --delete "${remote_repo}" ${{ steps.extract_pr_version.outputs.v }}
- name: Remove buildMeta version
run: |
Expand All @@ -52,7 +52,7 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET }}
with:
tag_name: ${{ steps.extract_version.outputs.v }}
release_name: Release ${{ steps.extract_version.outputs.v }}
Expand All @@ -62,7 +62,7 @@ jobs:
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./tmp-zip/certified.zip
Expand All @@ -81,9 +81,9 @@ jobs:
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_SECRET }}
- name: Delete Branch
uses: jessfraz/branch-cleanup-action@master
env:
NO_BRANCH_DELETED_EXIT_CODE: 0
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_SECRET }}
4 changes: 2 additions & 2 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version.buildmeta=
version.buildmeta=fix_github_secret
version.buildmeta.prefix=_
version.major=0
version.minor=4
version.patch=0
version.prerelease=
version.semver=0.4.0
version.semver=0.4.0_fix_github_secret

0 comments on commit 9b1ed41

Please sign in to comment.