Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ed753cb

Browse files
committedFeb 7, 2022
workflows: more fixes for bump-nocache-line workflow
- switch to git-core to prevent installing a bunch of deps - install git first - otherwise GH actions won't actually download full git repo but an archive with the following log message: - "The repository will be downloaded using the GitHub REST API To create a local Git repository instead, add Git 2.18 or higher to the PATH" - configure the git username and email - Add comment to "fetch-depth: 0"
1 parent 0d0090e commit ed753cb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎.github/workflows/bump-nocache-line.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,24 @@ jobs:
1616
runs-on: ubuntu-latest
1717
container: registry.fedoraproject.org/fedora:latest
1818
steps:
19+
- name: Install dependencies
20+
run: dnf install -y git-core
1921
- name: Check out repository
2022
uses: actions/checkout@v2
2123
with:
2224
ref: main
25+
# Since we are pushing to a fork we need the full history
26+
# in case the fork is out of date and we need to bring it up
27+
# to date.
2328
fetch-depth: 0
24-
- name: Install dependencies
25-
run: dnf install -y git
2629
- name: bump nocache line
2730
run: |
2831
datestr=$(date +%D)
2932
sed -i "s|# nocache.*$|# nocache ${datestr}|" ./Dockerfile
3033
- name: Create commit
3134
run: |
35+
git config user.name 'CoreOS Bot'
36+
git config user.email coreosbot@fedoraproject.org
3237
if ! git diff --quiet --exit-code; then
3338
git commit -am "Dockerfile: bump nocache line 🪴" \
3439
-m "Triggered by bump-nocache-line GitHub workflow."

0 commit comments

Comments
 (0)
Please sign in to comment.