Migrate to Github PAT for triggering workflows
This commit is contained in:
parent
72a250dedc
commit
ca42b43d54
3 changed files with 6 additions and 16 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -71,7 +71,7 @@ jobs:
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||||
with:
|
with:
|
||||||
name: pve-edge-kernel ${{ steps.format_release.outputs.release }}
|
name: pve-edge-kernel ${{ steps.format_release.outputs.release }}
|
||||||
body: ${{ steps.format_release.outputs.changelog }}
|
body: ${{ steps.format_release.outputs.changelog }}
|
||||||
|
|
11
.github/workflows/update.yml
vendored
11
.github/workflows/update.yml
vendored
|
@ -22,11 +22,6 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: tibdex/github-app-token@v1
|
|
||||||
id: generate-token
|
|
||||||
with:
|
|
||||||
app_id: ${{ secrets.APP_ID }}
|
|
||||||
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
|
||||||
- name: Setup System Dependencies
|
- name: Setup System Dependencies
|
||||||
run: sudo apt install devscripts
|
run: sudo apt install devscripts
|
||||||
- name: Update Kernel
|
- name: Update Kernel
|
||||||
|
@ -45,16 +40,16 @@ jobs:
|
||||||
changelog="${changelog//$'\n'/'%0A'}"
|
changelog="${changelog//$'\n'/'%0A'}"
|
||||||
changelog="${changelog//$'\r'/'%0D'}"
|
changelog="${changelog//$'\r'/'%0D'}"
|
||||||
echo "::set-output name=changelog::$changelog"
|
echo "::set-output name=changelog::$changelog"
|
||||||
echo "::set-output name=base::$(scripts/version.sh -B)"
|
|
||||||
echo "::set-output name=branch::${GITHUB_REF##*/}"
|
echo "::set-output name=branch::${GITHUB_REF##*/}"
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.generate-token.outputs.token }} # Custom token needed to recursively trigger workflows
|
token: ${{ secrets.PAT }} # Custom token needed to recursively trigger workflows
|
||||||
|
author: Fabian Mastenbroek <mail.fabianm@gmail.com>
|
||||||
commit-message: |
|
commit-message: |
|
||||||
Add Linux ${{ steps.update.outputs.version }}
|
Add Linux ${{ steps.update.outputs.version }}
|
||||||
|
|
||||||
This change updates the kernel to Linux ${{ steps.update.outputs.version }} based on Ubuntu ${{ steps.update.outputs.base }}.
|
This change updates the kernel to Linux ${{ steps.update.outputs.version }}.
|
||||||
branch: staging/v${{ steps.update.outputs.full }}
|
branch: staging/v${{ steps.update.outputs.full }}
|
||||||
branch-suffix: short-commit-hash
|
branch-suffix: short-commit-hash
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
|
9
.github/workflows/watch.yml
vendored
9
.github/workflows/watch.yml
vendored
|
@ -17,11 +17,6 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{ matrix.branch }}
|
ref: ${{ matrix.branch }}
|
||||||
- uses: tibdex/github-app-token@v1
|
|
||||||
id: generate-token
|
|
||||||
with:
|
|
||||||
app_id: ${{ secrets.APP_ID }}
|
|
||||||
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
|
||||||
- name: Setup System Dependencies
|
- name: Setup System Dependencies
|
||||||
run: sudo apt install jq curl
|
run: sudo apt install jq curl
|
||||||
- name: Check for Release
|
- name: Check for Release
|
||||||
|
@ -45,7 +40,7 @@ jobs:
|
||||||
uses: benc-uk/workflow-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
workflow: Kernel Update
|
workflow: Kernel Update
|
||||||
token: ${{ steps.generate-token.outputs.token }} # Custom token needed to recursively trigger workflows
|
token: ${{ secrets.PAT }} # Custom token needed to recursively trigger workflows
|
||||||
inputs: '{ "tag": "cod/mainline/v${{ steps.check.outputs.version }}" }'
|
inputs: '{ "tag": "v${{ steps.check.outputs.version }}" }'
|
||||||
ref: ${{ matrix.branch }}
|
ref: ${{ matrix.branch }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue