Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
mering committed Oct 31, 2023
1 parent ad8b5cc commit 90db8d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency: testing
permissions:
contents: read
packages: write
jobs:
add_temp_pkgs1:
name: Add temporary packages for testing
Expand All @@ -21,7 +23,7 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: lower case repository
id: lower_case_repository
Expand Down Expand Up @@ -54,7 +56,7 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: lower case repository
id: lower_case_repository
Expand All @@ -80,15 +82,15 @@ jobs:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry with PAT_TOKEN
- name: Login to GitHub Container Registry with GITHUB_TOKEN
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: ./
with:
token: ${{ secrets.PAT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: true
Expand All @@ -103,7 +105,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./
with:
token: ${{ secrets.PAT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: true
Expand All @@ -118,7 +120,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./
with:
token: ${{ secrets.PAT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: ${{ github.repository }}/p1
Expand All @@ -133,7 +135,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./
with:
token: ${{ secrets.PAT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: false
Expand Down
2 changes: 1 addition & 1 deletion clean_ghcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_url(path):

def get_base_headers():
return {
"Authorization": "token {}".format(args.token),
"Authorization": "Bearer {}".format(args.token),
"Accept": "application/vnd.github.v3+json",
}

Expand Down

0 comments on commit 90db8d2

Please sign in to comment.