Skip to content

Commit

Permalink
fix actions ref resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
cornfeedhobo committed Mar 16, 2024
1 parent f526f71 commit 699ae5e
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,8 @@ jobs:
- name: Collect build context
id: context
run: |
echo "date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT"
echo "version=$(< VERSION)" >> "$GITHUB_OUTPUT"
- name: Get monero tag ref
id: get_release_ref
uses: octokit/request-action@v2.x
with:
route: GET /repos/monero-project/monero/git/refs/tags/${{ steps.context.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get monero commit ref url
id: get_commit_ref_url
run: |
URL="${{ fromJson(steps.get_release_ref.outputs.data).object.url }}"
echo "ref_url=${URL/https:\/\/api.github.com}" >> "$GITHUB_OUTPUT"
- name: Get monero commit ref
id: get_commit_ref
uses: octokit/request-action@v2.x
with:
route: GET ${{ steps.get_commit_ref_url.outputs.ref_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Docker metadata mapping
id: meta
uses: docker/metadata-action@v5
Expand Down

0 comments on commit 699ae5e

Please sign in to comment.