mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-11 00:18:06 -05:00
More Workflow Cleanup. (#12182)
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
60dafb6b84
commit
ee306eae2b
2
.github/workflows/Build.yml
vendored
2
.github/workflows/Build.yml
vendored
@@ -370,7 +370,7 @@ jobs:
|
||||
echo -e "&& yes | crew upgrade\n\`\`\`" >> /tmp/pr.txt
|
||||
cat /tmp/pr.txt
|
||||
gh auth status >/dev/null 2>&1 || export GH_TOKEN="${GH_BACKUP_TOKEN}"
|
||||
PR_NUMBER=$(gh pr create --title "AutoBuild: ${{ env.BRANCH }} started at ${TIMESTAMP}" -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
PR_NUMBER=$(gh pr create --title "AutoBuild: ${{ env.BRANCH }} started at ${TIMESTAMP}." -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
echo "PR_NUMBER is ${PR_NUMBER}"
|
||||
echo "PR_NUMBER=${PR_NUMBER}" >> "$GITHUB_ENV"
|
||||
- name: Trigger Unit Test Workflow & Add Reviewer Team
|
||||
|
||||
26
.github/workflows/No-Compile-Needed.yml
vendored
26
.github/workflows/No-Compile-Needed.yml
vendored
@@ -149,15 +149,15 @@ jobs:
|
||||
matrix:
|
||||
arch: [i686, x86_64, armv7l]
|
||||
runner:
|
||||
- [self-hosted, X64]
|
||||
- [self-hosted, ARM]
|
||||
- ubuntu-24.04
|
||||
- ubuntu-24.04-arm
|
||||
exclude:
|
||||
- arch: x86_64
|
||||
runner: [self-hosted, ARM]
|
||||
runner: ubuntu-24.04-arm
|
||||
- arch: i686
|
||||
runner: [self-hosted, ARM]
|
||||
runner: ubuntu-24.04-arm
|
||||
- arch: armv7l
|
||||
runner: [self-hosted, X64]
|
||||
runner: ubuntu-24.04
|
||||
runs-on: ${{ matrix.runner }}
|
||||
needs: setup
|
||||
env:
|
||||
@@ -332,10 +332,19 @@ jobs:
|
||||
git reset --hard "origin/${{ env.BRANCH }}"
|
||||
git pull --rebase origin master && git push -f
|
||||
git log --oneline -10
|
||||
- name: Get GH Token
|
||||
id: get_workflow_token
|
||||
uses: peter-murray/workflow-application-token-action@v4
|
||||
with:
|
||||
application_id: ${{ secrets.APPLICATION_ID }}
|
||||
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
|
||||
organization: chromebrew
|
||||
revoke_token: true
|
||||
- name: Create Pull Request
|
||||
env:
|
||||
CHANGED_MANIFEST_FILES: ${{ steps.changed-manifest-files.outputs.all_changed_files }}
|
||||
CHANGED_PACKAGES: ${{ needs.setup.outputs.changed_packages }}
|
||||
GH_BACKUP_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
|
||||
TIMESTAMP: ${{ needs.setup.outputs.timestamp }}
|
||||
i686_PACKAGES: ${{ needs.setup.outputs.i686_packages }}
|
||||
x86_64_PACKAGES: ${{ needs.setup.outputs.x86_64_packages }}
|
||||
@@ -360,14 +369,15 @@ jobs:
|
||||
echo -e "CREW_REPO=https://github.com/chromebrew/chromebrew.git CREW_BRANCH=${{ env.BRANCH }} crew update \\" >> /tmp/pr.txt
|
||||
echo -e "&& yes | crew upgrade\n\`\`\`" >> /tmp/pr.txt
|
||||
cat /tmp/pr.txt
|
||||
PR_NUMBER=$(gh pr create --title "AutoUpdate: ${{ env.BRANCH }} started at ${TIMESTAMP}" -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
gh auth status >/dev/null 2>&1 || export GH_TOKEN="${GH_BACKUP_TOKEN}"
|
||||
PR_NUMBER=$(gh pr create --title "AutoUpdate: ${{ env.BRANCH }} started at ${TIMESTAMP}." -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
echo "PR_NUMBER is ${PR_NUMBER}"
|
||||
echo "PR_NUMBER=${PR_NUMBER}" >> "$GITHUB_ENV"
|
||||
- name: Trigger Unit Test Workflow & Add Reviewer Team
|
||||
env:
|
||||
GH_BACKUP_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
|
||||
GH_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
|
||||
run: |
|
||||
echo "Flipping pr ${PR_NUMBER} state."
|
||||
gh pr close "${PR_NUMBER}" && gh pr reopen "${PR_NUMBER}"
|
||||
gh auth status >/dev/null 2>&1 || export GH_TOKEN="${GH_BACKUP_TOKEN}"
|
||||
gh pr edit "${PR_NUMBER}" --add-reviewer chromebrew/active
|
||||
gh pr merge "${PR_NUMBER}" --auto
|
||||
|
||||
2
.github/workflows/Repology.yml
vendored
2
.github/workflows/Repology.yml
vendored
@@ -43,7 +43,5 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
|
||||
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
|
||||
run: |
|
||||
echo "Flipping pr ${PR_NUMBER} state."
|
||||
gh pr close "${PR_NUMBER}" && gh pr reopen "${PR_NUMBER}"
|
||||
gh pr edit "${PR_NUMBER}" --add-reviewer chromebrew/active
|
||||
gh pr merge "${PR_NUMBER}" --auto --squash
|
||||
|
||||
Reference in New Issue
Block a user