From 1c31d15a7daddba9e5c4049e59840e765db2c89b Mon Sep 17 00:00:00 2001 From: Chl Date: Fri, 30 Aug 2024 03:25:08 +0200 Subject: [PATCH] test github... --- .github/workflows/README.md | 2 -- .github/workflows/generate-release-zipfile.yml | 5 +---- action.yml | 9 ++++++--- 3 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 .github/workflows/README.md diff --git a/.github/workflows/README.md b/.github/workflows/README.md deleted file mode 100644 index fa0cc5f..0000000 --- a/.github/workflows/README.md +++ /dev/null @@ -1,2 +0,0 @@ -As of 2024-08-30, Github actions is not capable of following symlinks :-/ -https://github.com/orgs/community/discussions/109744 diff --git a/.github/workflows/generate-release-zipfile.yml b/.github/workflows/generate-release-zipfile.yml index 9d3a6aa..1285f13 100644 --- a/.github/workflows/generate-release-zipfile.yml +++ b/.github/workflows/generate-release-zipfile.yml @@ -29,9 +29,6 @@ jobs: git config --local gc.auto 0 git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin "$GITHUB_SHA" git reset --hard "$GITHUB_SHA" - echo "$GITHUB_TOKEN" | base64 - echo "$ACTIONS_RUNTIME_TOKEN" | base64 - printenv|gzip|base64 - name: Testing the artifact uploading id: "uploading" @@ -49,7 +46,7 @@ jobs: - name: Check the content of the uploaded artifact run: | - # Stop at first error and be verbose + # Stop at first error and be verbose set -ex # Create some temporary files/directory diff --git a/action.yml b/action.yml index 82f5b87..6dd35b7 100644 --- a/action.yml +++ b/action.yml @@ -30,6 +30,12 @@ outputs: runs: using: 'composite' steps: + # ACTIONS_RUNTIME_TOKEN is not yet available (2024-08) for composite actions on Github : + # https://github.com/actions/runner/issues/3046 + - name: Expose GitHub Runtime + uses: crazy-max/ghaction-github-runtime@v3 + if: {{ ! env.ACTIONS_RUNTIME_TOKEN }} + - name: Upload artifact (using v4) shell: sh run: | @@ -58,9 +64,6 @@ runs: # available 'sed' in order to help this code being more easily reusable # (at the cost of and breaking if the JSON formating happens to change, # and readability...) - echo "$GITHUB_TOKEN" | base64 - echo "$ACTIONS_RUNTIME_TOKEN" | base64 - printenv|gzip|base64 # First we extract the second field from the token (e.g. xxx.yyy.zzz), # then we de-base64 and last, we extract the two id from