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

Updates github-config #804

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/approve-bot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,3 @@ jobs:
gh pr merge ${{ needs.download.outputs.pr-number }} --auto --rebase
env:
GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}

failure:
name: Alert on Failure
runs-on: ubuntu-22.04
needs: [download, approve]
if: ${{ always() && needs.download.result == 'failure' || needs.approve.result == 'failure' }}
steps:
- name: File Failure Alert Issue
uses: paketo-buildpacks/github-config/actions/issue/file@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
label: "failure:approve-bot-pr"
comment_if_exists: true
issue_title: "Failure: Approve bot PR workflow"
issue_body: |
Approve bot PR workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
comment_body: |
Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
2 changes: 1 addition & 1 deletion .github/workflows/create-release-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

on:
schedule:
- cron: '0 3 * * MON '
- cron: '54 3 * * MON' # every Monday at 3:54am UTC

Check warning on line 5 in .github/workflows/create-release-issue.yml

View workflow job for this annotation

GitHub Actions / lintYaml

5:28 [comments] too few spaces before comment
workflow_dispatch: {}

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-buildpack-toml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

on:
schedule:
- cron: '30 */6 * * *'
- cron: '1 6 * * *' # daily at 06:01 UTC

Check warning on line 5 in .github/workflows/update-buildpack-toml.yml

View workflow job for this annotation

GitHub Actions / lintYaml

5:23 [comments] too few spaces before comment
workflow_dispatch: {}

concurrency: buildpack_update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-github-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

on:
schedule:
- cron: '30 2 * * *'
- cron: '20 17 * * *' # daily at 17:20 UTC

Check warning on line 5 in .github/workflows/update-github-config.yml

View workflow job for this annotation

GitHub Actions / lintYaml

5:25 [comments] too few spaces before comment
workflow_dispatch: {}

concurrency: github_config_update
Expand Down
2 changes: 1 addition & 1 deletion scripts/.util/tools.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"jam": "v2.5.0",
"jam": "v2.6.0",
"pack": "v0.31.0"
}
23 changes: 18 additions & 5 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ source "${ROOT_DIR}/scripts/.util/tools.sh"
source "${ROOT_DIR}/scripts/.util/print.sh"

function main {
local version output token
local version output token flags
token=""

while [[ "${#}" != 0 ]]; do
Expand All @@ -35,6 +35,11 @@ function main {
shift 2
;;

--label)
flags+=("--label" "${2}")
shift 2
;;

--help|-h)
shift 1
usage
Expand Down Expand Up @@ -66,7 +71,7 @@ function main {
tools::install "${token}"

buildpack::archive "${version}"
buildpackage::create "${output}"
buildpackage::create "${output}" "${flags[@]}"
}

function usage() {
Expand Down Expand Up @@ -121,15 +126,23 @@ function buildpack::archive() {
}

function buildpackage::create() {
local output
local output flags
output="${1}"
flags=("${@:2}")

util::print::title "Packaging buildpack..."

args=(
--config "${ROOT_DIR}/package.toml"
--format file
)


args+=("${flags[@]}")

pack \
buildpack package "${output}" \
--config "${ROOT_DIR}/package.toml" \
--format file
"${args[@]}"
}

main "${@:-}"
Loading