-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Dependency Updater: Github Action Workflow for Scheduled Updater Runs #497
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
Merged
Merged
Changes from 48 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
23027da
add github action to automatically run dependency updater
JenabaBa 27f2449
push
JenabaBa 4fcea44
fix syntax
JenabaBa 470dd88
comment out time
JenabaBa b4e06c2
test if push triggers action
JenabaBa aa8cd3f
change from on: push: to on: pull req:
JenabaBa cc9bd6d
change env action
JenabaBa a1707b5
change path
JenabaBa a71d79a
change path
JenabaBa e7a1851
change path to env
JenabaBa 554cf50
change path
JenabaBa 428ac59
un-ignore commit message
JenabaBa dcaded4
test env file location change
JenabaBa 9fb29a0
fix dependency updater build command
JenabaBa 6fbf8d3
fix dependency runner
JenabaBa 8df3131
test if versions.json displays
JenabaBa 89aa152
change dependency updater path
JenabaBa 137ec77
check directory
JenabaBa 2755e36
check path
JenabaBa 41aa8fe
uncomment everything
JenabaBa 322a853
test push to fork
JenabaBa c943d66
test base/branch
JenabaBa b67b030
remove pull request trigger
JenabaBa f9a0f92
add workflow dispatch
JenabaBa dc120db
test pr creation
JenabaBa 359d2d4
revert dependencies yml back
JenabaBa d87230d
set delete-branch to true
JenabaBa d7dabd9
test if pr is created
JenabaBa 595e2f0
fix on: pull_request
JenabaBa 57e5b6a
rename commit message env
JenabaBa d683a0d
fix env file name
JenabaBa 2ebfcaa
comment author and committer
JenabaBa f7905cb
try adding token
JenabaBa 38b32fe
set permissions
JenabaBa 79c3bd8
add read permissions
JenabaBa ee0dc5d
add more permissions
JenabaBa dc68d73
typo in pull request name
JenabaBa 12917aa
fix typo in ym
JenabaBa 18de284
change checkout to main
JenabaBa ae039ec
fix syntax
JenabaBa 45cd81f
change ref to pr branch
JenabaBa d99126e
remove ref
JenabaBa cead39e
change base to main
JenabaBa 13ad007
change base branch
JenabaBa 3f8aa6a
remove base
JenabaBa 4e13318
remove base and set ref to main create test PR
JenabaBa 3456c03
add support for manually running updater, and change yml updater command
JenabaBa e57ba29
fix workflow typo
JenabaBa 300efeb
remove author + committer and schedule to run every hour
JenabaBa fd67b2a
uncomment schedule
JenabaBa 258f771
add versions next to commit hash
JenabaBa 5b26043
remove env echo
JenabaBa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: Update Dockerfile Dependencies | ||
| on: | ||
| schedule: | ||
| - cron: '0 12 * * * *' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| update: | ||
| name: update | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
JenabaBa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| with: | ||
| ref: main | ||
|
|
||
| - name: build dependency updater | ||
| run: cd dependency_updater && go build | ||
|
|
||
| - name: run dependency updater | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: cd dependency_updater && ./dependency_updater --repo ../ --github-action true | ||
|
|
||
| - name: Load .env file | ||
| uses: aarcangeli/load-dotenv@v1.1.0 | ||
| with: | ||
| filenames: 'commit_message.env' | ||
|
|
||
| - name: view env | ||
| run: echo ${{ env.TITLE }} | ||
|
|
||
| - name: create pull request | ||
| uses: peter-evans/create-pull-request@v7.0.8 | ||
| with: | ||
| author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> | ||
| committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | ||
JenabaBa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| title: ${{ env.TITLE }} | ||
| commit-message: ${{ env.TITLE }} | ||
| body: ${{ env.DESC }} | ||
| branch: run-dependency-updater | ||
| delete-branch: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.